mirror of
https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
synced 2024-11-23 02:43:54 +08:00
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:
parent
f94b5c4c37
commit
4063401a05
@ -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 \
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user