aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2024-04-04 19:38:47 +0200
committerToni Uhlig <matzeton@googlemail.com>2024-04-04 19:46:15 +0200
commit5375c5be5f827dbb17452a08ce7193096e914a77 (patch)
tree9d1a218eb6e1610f399109ddfc2dc5b978d71a8e
parentdf29e12f5efbe84306c1ee7c011a197caec6de50 (diff)
Fixed yet another another "unused function" warning.fix/external-ndpi-build-3
* added `-Wextra` to the CI ``` In file included from ndpi_bitmap64_fuse.c:31: ./third_party/include/binaryfusefilter.h:31:24: error: unused function 'binary_fuse_rotl64' [-Werror,-Wunused-function] static inline uint64_t binary_fuse_rotl64(uint64_t n, unsigned int c) { ..snip.. ``` Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rw-r--r--.github/workflows/build.yml4
-rw-r--r--src/lib/Makefile.in1
2 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 516a569ce..0f0f8c880 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -14,7 +14,7 @@ jobs:
name: Python Bindings (ubuntu-latest)
runs-on: ubuntu-latest
env:
- CFLAGS: -Werror
+ CFLAGS: -Wextra -Werror
steps:
- uses: actions/checkout@v4
with:
@@ -71,7 +71,7 @@ jobs:
runs-on: ${{ matrix.os }}
env:
CC: ${{ matrix.compiler }}
- CFLAGS: -Werror
+ CFLAGS: -Wextra -Werror
strategy:
fail-fast: true
matrix:
diff --git a/src/lib/Makefile.in b/src/lib/Makefile.in
index e7a0c2dba..4643136e2 100644
--- a/src/lib/Makefile.in
+++ b/src/lib/Makefile.in
@@ -19,6 +19,7 @@ CFLAGS += -fPIC -DPIC
endif
CFLAGS += -I. -I../include -Ithird_party/include -DNDPI_LIB_COMPILATION @NDPI_CFLAGS@ @GPROF_CFLAGS@ @CUSTOM_NDPI@ @ADDITIONAL_INCS@
CFLAGS_ndpi_bitmap.c := -Wno-unused-function
+CFLAGS_ndpi_bitmap64_fuse.c := -Wno-unused-function
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