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

This commit is contained in:
kallal79 committed 2026-06-12 19:10:33 +05:30
1 parent aea86bc350
commit a77dacad9a
4 files changed
+36

No files matched your search

+9
View File
@@ -40,6 +40,11 @@
#include "../include/secp256k1_ellswift.h"
#endif
#if defined(__GNUC__)
# pragma GCC diagnostic push
# pragma GCC diagnostic warning "-Wunused-function"
#endif
static void run_tests(secp256k1_context *ctx, unsigned char *key);
int main(void) {
@@ -265,3 +270,7 @@ static void run_tests(secp256k1_context *ctx, unsigned char *key) {
#endif
}
#if defined(__GNUC__)
# pragma GCC diagnostic pop
#endif