Disable -Wno-unused-parameter -Wno-unused-function. (#2358)

* unused parameters and functions pollute the code and decrease readability

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni
2024-04-03 14:10:21 +02:00
committed by GitHub
parent b5e8bc2214
commit 41eef9246c
63 changed files with 568 additions and 605 deletions
+1
View File
@@ -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;
+3
View File
@@ -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) {