From: Lucas De Marchi Date: Sat, 9 Nov 2024 22:23:02 +0000 (-0600) Subject: build: Stop warning for attribute clang::suppress X-Git-Tag: v34~116 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4063401a051cebda5507618e7193b11b59957e75;p=thirdparty%2Fkmod.git build: Stop warning for attribute clang::suppress 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 Link: https://github.com/kmod-project/kmod/pull/233 --- diff --git a/configure.ac b/configure.ac index 233fd274..c605c112 100644 --- a/configure.ac +++ b/configure.ac @@ -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 \ diff --git a/meson.build b/meson.build index c7ae6fbd..905342c2 100644 --- a/meson.build +++ b/meson.build @@ -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',