From 21ea0ec3e5bffa81122cee9fde88b2e8211bf63e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 13 Jul 2022 22:27:01 -0400 Subject: Suppress new warnings in clang and clang-tidy 14 --- meson/suppressions/meson.build | 1 + src/.clang-tidy | 2 ++ test/.clang-tidy | 2 ++ 3 files changed, 5 insertions(+) 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 -- cgit v1.2.1