From 4063401a051cebda5507618e7193b11b59957e75 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Sat, 9 Nov 2024 16:23:02 -0600 Subject: [PATCH] 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 --- configure.ac | 1 + meson.build | 1 + 2 files changed, 2 insertions(+) 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',