aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-07-16 22:11:55 -0400
committerDavid Robillard <d@drobilla.net>2024-07-16 22:11:55 -0400
commit8da362e71566465b86a09ae1197abcb93f0f83be (patch)
tree76be4f746837342d3155ba7dbe6d9044c68cfeb2
parentac7f3a28687d03876482130b9e91ed4be6df3579 (diff)
downloadserd-8da362e71566465b86a09ae1197abcb93f0f83be.tar.gz
serd-8da362e71566465b86a09ae1197abcb93f0f83be.tar.bz2
serd-8da362e71566465b86a09ae1197abcb93f0f83be.zip
Suppress new warnings in clang and clang-tidy 18
-rw-r--r--meson/suppressions/meson.build1
-rw-r--r--src/.clang-tidy6
-rw-r--r--test/.clang-tidy2
3 files changed, 8 insertions, 1 deletions
diff --git a/meson/suppressions/meson.build b/meson/suppressions/meson.build
index 94ca305d..461a7128 100644
--- a/meson/suppressions/meson.build
+++ b/meson/suppressions/meson.build
@@ -22,6 +22,7 @@ if is_variable('cc')
'-Wno-double-promotion',
'-Wno-format-nonliteral',
'-Wno-padded',
+ '-Wno-switch-default',
'-Wno-unsafe-buffer-usage',
]
diff --git a/src/.clang-tidy b/src/.clang-tidy
index 52862fe4..18cba92e 100644
--- a/src/.clang-tidy
+++ b/src/.clang-tidy
@@ -2,9 +2,13 @@
# SPDX-License-Identifier: 0BSD OR ISC
Checks: >
+ -*-macro-to-enum,
-*-magic-numbers,
-bugprone-easily-swappable-parameters,
+ -bugprone-inc-dec-in-conditions,
+ -bugprone-multi-level-implicit-pointer-conversion,
-cert-err33-c,
+ -clang-analyzer-optin.core.EnumCastOutOfRange,
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
-concurrency-mt-unsafe,
-google-readability-todo,
@@ -12,7 +16,7 @@ Checks: >
-hicpp-signed-bitwise,
-llvm-header-guard,
-misc-no-recursion,
- -modernize-macro-to-enum,
+ -readability-avoid-nested-conditional-operator,
CheckOptions:
- key: readability-function-cognitive-complexity.IgnoreMacros
value: 'true'
diff --git a/test/.clang-tidy b/test/.clang-tidy
index 457abcaf..99a3264a 100644
--- a/test/.clang-tidy
+++ b/test/.clang-tidy
@@ -8,9 +8,11 @@ Checks: >
-bugprone-easily-swappable-parameters,
-cert-err33-c,
-clang-analyzer-nullability.NullableDereferenced,
+ -clang-analyzer-optin.core.EnumCastOutOfRange,
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
-concurrency-mt-unsafe,
-hicpp-signed-bitwise,
+ -readability-redundant-casting,
CheckOptions:
- key: readability-function-cognitive-complexity.IgnoreMacros
value: 'true'