]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
build: Stop warning for attribute clang::suppress
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Sat, 9 Nov 2024 22:23:02 +0000 (16:23 -0600)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 12 Nov 2024 00:11:11 +0000 (18:11 -0600)
That attribute allows us to instruct the Clang Static Analyzer to stop
giving some false positives. However when building the code (with gcc
and clang) they warn that the attribute is ignored. Just ignore as we
know what the attribute is for.

Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/233
configure.ac
meson.build

index 233fd274cdaad1759902022b464184ff72c81a2b..c605c112dd3387f664b67405490d68e8bbf8154e 100644 (file)
@@ -279,6 +279,7 @@ CC_CHECK_FLAGS_APPEND(with_cflags, [CFLAGS], [\
                       -Wmissing-noreturn \
                       -Wmissing-prototypes \
                       -Wnested-externs \
+                      -Wno-attributes=clang::suppress \
                       -Wno-unused-parameter \
                       -Wold-style-definition \
                       -Wpointer-arith \
index c7ae6fbdfed49d40b3365169d0f7911b01e9ec0d..905342c29d661f17cec895817aa2fdace10c7659 100644 (file)
@@ -131,6 +131,7 @@ add_project_arguments(
     '-Wmissing-prototypes',
     '-Wnested-externs',
     '-Wno-unused-parameter',
+    '-Wno-attributes=clang::suppress',
     '-Wold-style-definition',
     '-Wpointer-arith',
     '-Wredundant-decls',