Add -Wno-unused-function as CFLAG for third_party/src/gcrypt_light.c. (#2364)

* fixes failing nDPI build from an external project with clang and `-Wextra`

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni
2024-04-04 13:51:27 +02:00
committed by GitHub
parent dface63157
commit 6e61368cd6
+1 -1
View File
@@ -18,7 +18,7 @@ ifneq ($(OS),Windows_NT)
CFLAGS += -fPIC -DPIC
endif
CFLAGS += -I. -I../include -Ithird_party/include -DNDPI_LIB_COMPILATION @NDPI_CFLAGS@ @GPROF_CFLAGS@ @CUSTOM_NDPI@ @ADDITIONAL_INCS@
CFLAGS_third_party/src/gcrypt_light.c := -Wno-unused-parameter
CFLAGS_third_party/src/gcrypt_light.c := -Wno-unused-function -Wno-unused-parameter
CFLAGS_third_party/src/ahocorasick.c := -Wno-unused-function -Wno-unused-parameter
CFLAGS_third_party/src/roaring.c := -Wno-unused-function -Wno-attributes
LDFLAGS += @NDPI_LDFLAGS@