Skip to content

Commit

Permalink
build: Stop warning for attribute clang::suppress
Browse files Browse the repository at this point in the history
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 <[email protected]>
Link: #233
  • Loading branch information
lucasdemarchi committed Nov 12, 2024
1 parent f94b5c4 commit 4063401
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 4063401

Please sign in to comment.