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 <lucas.de.marchi@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/233
This commit is contained in:
Lucas De Marchi 2024-11-09 16:23:02 -06:00
parent f94b5c4c37
commit 4063401a05
2 changed files with 2 additions and 0 deletions

View 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 \

View 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',