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
+16
View File
@@ -60,6 +60,9 @@ int ndpi_load_geoip(struct ndpi_detection_module_struct *ndpi_str,
return(0);
#else
(void)ndpi_str;
(void)ip_city_data;
(void)ip_as_data;
return(-3);
#endif
}
@@ -73,6 +76,8 @@ void ndpi_free_geoip(struct ndpi_detection_module_struct *ndpi_str) {
ndpi_free(ndpi_str->mmdb_city);
ndpi_free(ndpi_str->mmdb_as);
#else
(void)ndpi_str;
#endif
}
@@ -103,6 +108,10 @@ int ndpi_get_geoip_asn(struct ndpi_detection_module_struct *ndpi_str, char *ip,
return(0);
}
#else
(void)ndpi_str;
(void)ip;
(void)asn;
#endif
return(-2);
@@ -158,6 +167,13 @@ int ndpi_get_geoip_country_continent(struct ndpi_detection_module_struct *ndpi_s
return(0);
}
#else
(void)ndpi_str;
(void)ip;
(void)country_code;
(void)country_code_len;
(void)continent;
(void)continent_len;
#endif
return(-2);