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