test: enable -Wunused-function in test suite (Fix #1831)

This commit is contained in:
kallal79
2026-06-12 19:10:33 +05:30
parent aea86bc350
commit a77dacad9a
4 changed files with 36 additions and 0 deletions

View File

@@ -17,6 +17,11 @@
#include "testrand.h"
#include "tests_common.h"
#if defined(__GNUC__)
# pragma GCC diagnostic push
# pragma GCC diagnostic warning "-Wunused-function"
#endif
#define UNUSED(x) (void)(x)
/* Number of times certain tests will run */
@@ -477,3 +482,7 @@ static int tf_run(struct tf_framework* tf) {
return status;
}
#if defined(__GNUC__)
# pragma GCC diagnostic pop
#endif