diff options
author | David Robillard <d@drobilla.net> | 2022-07-13 22:27:01 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-07-13 22:27:01 -0400 |
commit | 21ea0ec3e5bffa81122cee9fde88b2e8211bf63e (patch) | |
tree | 421d9565d3b965ef9435fceb27fd426909edd5e4 | |
parent | 47adc7d3dec1e1d2454750612d48353944fcf836 (diff) | |
download | serd-21ea0ec3e5bffa81122cee9fde88b2e8211bf63e.tar.gz serd-21ea0ec3e5bffa81122cee9fde88b2e8211bf63e.tar.bz2 serd-21ea0ec3e5bffa81122cee9fde88b2e8211bf63e.zip |
Suppress new warnings in clang and clang-tidy 14
-rw-r--r-- | meson/suppressions/meson.build | 1 | ||||
-rw-r--r-- | src/.clang-tidy | 2 | ||||
-rw-r--r-- | test/.clang-tidy | 2 |
3 files changed, 5 insertions, 0 deletions
diff --git a/meson/suppressions/meson.build b/meson/suppressions/meson.build index ed7ec57b..20410def 100644 --- a/meson/suppressions/meson.build +++ b/meson/suppressions/meson.build @@ -20,6 +20,7 @@ if is_variable('cc') '-Wno-cast-align', '-Wno-cast-qual', '-Wno-conversion', + '-Wno-declaration-after-statement', '-Wno-double-promotion', '-Wno-format-nonliteral', '-Wno-nullability-extension', diff --git a/src/.clang-tidy b/src/.clang-tidy index b47291f2..44d02929 100644 --- a/src/.clang-tidy +++ b/src/.clang-tidy @@ -9,6 +9,7 @@ Checks: > -bugprone-suspicious-string-compare, -cert-dcl37-c, -cert-dcl51-cpp, + -cert-err33-c, -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, -concurrency-mt-unsafe, -google-readability-todo, @@ -18,6 +19,7 @@ Checks: > -llvmlibc-*, -misc-no-recursion, -readability-function-cognitive-complexity, + -readability-identifier-length, WarningsAsErrors: '*' HeaderFilterRegex: '.*' FormatStyle: file diff --git a/test/.clang-tidy b/test/.clang-tidy index 539d0b59..7ffba27b 100644 --- a/test/.clang-tidy +++ b/test/.clang-tidy @@ -5,6 +5,7 @@ Checks: > -altera-*, -android-cloexec-fopen, -bugprone-easily-swappable-parameters, + -cert-err33-c, -clang-analyzer-nullability.NullabilityBase, -clang-analyzer-nullability.NullableDereferenced, -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, @@ -12,6 +13,7 @@ Checks: > -hicpp-signed-bitwise, -llvmlibc-*, -readability-function-cognitive-complexity, + -readability-identifier-length, WarningsAsErrors: '*' HeaderFilterRegex: '.*' FormatStyle: file |