From 39dc2b231dae2743bceb6ebb8a3d4792307df12a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 16 Jul 2024 21:51:15 -0400 Subject: Suppress new warnings in clang and clang-tidy 18 --- .clang-tidy | 3 ++- meson/suppressions/meson.build | 3 ++- plugins/.clang-tidy | 1 + test/headers/.clang-tidy | 5 +++-- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index ae712c5..5279051 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -3,16 +3,17 @@ Checks: > *, + -*-macro-to-enum, -*-magic-numbers, -altera-*, -bugprone-assignment-in-if-condition, + -bugprone-casting-through-void, -bugprone-easily-swappable-parameters, -bugprone-macro-parentheses, -clang-diagnostic-unused-function, -clang-diagnostic-unused-macros, -llvmlibc-restrict-system-libc-headers, -misc-include-cleaner, - -modernize-macro-to-enum, -performance-no-int-to-ptr, -readability-identifier-length, CheckOptions: diff --git a/meson/suppressions/meson.build b/meson/suppressions/meson.build index 96ff2ab..9d9a38a 100644 --- a/meson/suppressions/meson.build +++ b/meson/suppressions/meson.build @@ -1,4 +1,4 @@ -# Copyright 2020-2023 David Robillard +# Copyright 2020-2024 David Robillard # SPDX-License-Identifier: 0BSD OR ISC # Project-specific warning suppressions @@ -29,6 +29,7 @@ if is_variable('cc') '-Wno-reserved-id-macro', '-Wno-shorten-64-to-32', '-Wno-sign-conversion', + '-Wno-switch-default', '-Wno-switch-enum', '-Wno-unsafe-buffer-usage', ] diff --git a/plugins/.clang-tidy b/plugins/.clang-tidy index 5fc86ab..44bac70 100644 --- a/plugins/.clang-tidy +++ b/plugins/.clang-tidy @@ -5,6 +5,7 @@ Checks: > -*-narrowing-conversions, -bugprone-assignment-in-if-condition, -bugprone-easily-swappable-parameters, + -bugprone-multi-level-implicit-pointer-conversion, -bugprone-suspicious-realloc-usage, -cert-err33-c, -hicpp-signed-bitwise, diff --git a/test/headers/.clang-tidy b/test/headers/.clang-tidy index dd0b95f..26d6f6f 100644 --- a/test/headers/.clang-tidy +++ b/test/headers/.clang-tidy @@ -1,15 +1,16 @@ -# Copyright 2020-2022 David Robillard +# Copyright 2020-2024 David Robillard # SPDX-License-Identifier: 0BSD OR ISC Checks: > *, + -*-macro-to-enum, -*-magic-numbers, -altera-*, -bugprone-assignment-in-if-condition, + -bugprone-casting-through-void, -bugprone-easily-swappable-parameters, -bugprone-macro-parentheses, -llvmlibc-restrict-system-libc-headers, - -modernize-macro-to-enum, -performance-no-int-to-ptr, -readability-identifier-length, CheckOptions: -- cgit v1.2.1