From dbdbe3e518daf7b2f3f0e7587d8b2493b1d5a59e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 4 Feb 2023 22:08:42 -0500 Subject: Fix clang and clang-tidy warnings in Windows --- test/headers/.clang-tidy | 2 ++ test/headers/meson.build | 6 ++++++ 2 files changed, 8 insertions(+) (limited to 'test/headers') diff --git a/test/headers/.clang-tidy b/test/headers/.clang-tidy index f98ca17..dd0b95f 100644 --- a/test/headers/.clang-tidy +++ b/test/headers/.clang-tidy @@ -5,9 +5,11 @@ Checks: > *, -*-magic-numbers, -altera-*, + -bugprone-assignment-in-if-condition, -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: diff --git a/test/headers/meson.build b/test/headers/meson.build index e0a2d76..cee8965 100644 --- a/test/headers/meson.build +++ b/test/headers/meson.build @@ -12,6 +12,12 @@ if get_option('strict') '-Wno-padded', ] + if host_machine.system() == 'windows' + header_c_suppressions += [ + '-Wno-format-nonliteral', + ] + endif + elif cc.get_id() == 'gcc' header_c_suppressions += [ '-Wno-cast-align', -- cgit v1.2.1