From 41eef9246c6a3055e3876e3dd7aeaadecb4b76c0 Mon Sep 17 00:00:00 2001 From: Toni Date: Wed, 3 Apr 2024 14:10:21 +0200 Subject: Disable `-Wno-unused-parameter -Wno-unused-function`. (#2358) * unused parameters and functions pollute the code and decrease readability Signed-off-by: Toni Uhlig --- tests/dga/dga_evaluate.c | 1 + tests/unit/unit.c | 3 +++ 2 files changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/dga/dga_evaluate.c b/tests/dga/dga_evaluate.c index 27f89fbdc..7a63f2ca1 100644 --- a/tests/dga/dga_evaluate.c +++ b/tests/dga/dga_evaluate.c @@ -51,6 +51,7 @@ static void ndpi_dbg_fn(u_int32_t protocol, /* While this program always logs at NDPI_LOG_DEBUG_EXTRA level, the initialization of the library may log at any level */ + (void)log_level; (void)file; (void)func; (void)line; diff --git a/tests/unit/unit.c b/tests/unit/unit.c index 4b83be3b1..3ad95e229 100644 --- a/tests/unit/unit.c +++ b/tests/unit/unit.c @@ -366,6 +366,9 @@ int main(int argc, char **argv) { #ifndef WIN32 int c; #endif + (void)argc; + (void)argv; + NDPI_PROTOCOL_BITMASK all; if (ndpi_get_api_version() != NDPI_API_VERSION) { -- cgit v1.2.3