• src/sbbs3/boolsrch.c boolsrch_test.c

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sun Jul 26 22:57:46 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/23e5317481e437d250990cf7
    Modified Files:
    src/sbbs3/boolsrch.c boolsrch_test.c
    Log Message:
    boolsrch: compile the diagnostic helpers only for the unit tests

    bool_expr_is_simple(), bool_expr_simple_text() and bool_expr_describe()
    exist solely for boolsrch_test.c, which includes boolsrch.c as a
    translation unit in order to reach them. Nothing in the regular build referenced them, so every compile of boolsrch.c warned that all three
    were defined but unused.

    Guard the block with BOOLSRCH_UNIT_TEST, defined by the test driver
    before it includes the implementation.

    bool_expr_simple_text() had no caller even in the test driver, so cover
    it alongside the existing bool_expr_is_simple() assertions rather than
    drop the accessor.

    Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net