This PR addresses issue #1831 by enabling the -Wunused-function compiler warning within the test suite.
Currently, -Wno-unused-function is passed globally to disable warnings about unused functions, making it too easy to write a test case but forget to actually call it. To catch untested helper functions safely, this PR uses GCC/Clang pragmas scoped strictly to the body of the test files.
Changes Made:
- Added
#pragma GCC diagnostic warning "-Wunused-function"directly after the#includestatements insrc/tests.c,src/tests_exhaustive.c,src/ctime_tests.c, andsrc/unit_test.c. Fixes #1831