From 14125070585825fa3ca85a3ad2f94c90767f01e4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 13 Jul 2022 23:33:20 -0400 Subject: Suppress new warnings in clang and clang-tidy 14 --- .clang-tidy | 2 ++ meson/suppressions/meson.build | 1 + test/.clang-tidy | 2 ++ 3 files changed, 5 insertions(+) diff --git a/.clang-tidy b/.clang-tidy index f1f12ed..d075efd 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -7,6 +7,7 @@ Checks: > -bugprone-easily-swappable-parameters, -bugprone-macro-parentheses, -bugprone-suspicious-string-compare, + -cert-err33-c, -cert-err34-c, -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, -clang-analyzer-unix.Malloc, @@ -16,6 +17,7 @@ Checks: > -misc-no-recursion, -performance-no-int-to-ptr, -readability-function-cognitive-complexity, + -readability-identifier-length, WarningsAsErrors: '*' HeaderFilterRegex: '.*' FormatStyle: file diff --git a/meson/suppressions/meson.build b/meson/suppressions/meson.build index 735c43c..7f3e703 100644 --- a/meson/suppressions/meson.build +++ b/meson/suppressions/meson.build @@ -18,6 +18,7 @@ if is_variable('cc') c_suppressions += [ '-Wno-cast-align', '-Wno-cast-qual', + '-Wno-declaration-after-statement', '-Wno-documentation-unknown-command', '-Wno-double-promotion', '-Wno-float-conversion', diff --git a/test/.clang-tidy b/test/.clang-tidy index 53e7864..30cb10f 100644 --- a/test/.clang-tidy +++ b/test/.clang-tidy @@ -5,11 +5,13 @@ Checks: > -altera-*, -bugprone-macro-parentheses, -bugprone-suspicious-string-compare, + -cert-err33-c, -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, -hicpp-signed-bitwise, -llvm-header-guard, -llvmlibc-*, -performance-no-int-to-ptr, + -readability-identifier-length, WarningsAsErrors: '*' HeaderFilterRegex: '.*' FormatStyle: file -- cgit v1.2.1