diff options
author | David Robillard <d@drobilla.net> | 2023-02-04 22:08:42 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-02-04 22:08:42 -0500 |
commit | dbdbe3e518daf7b2f3f0e7587d8b2493b1d5a59e (patch) | |
tree | abfc927bb311042b017c5d1ec7621251b453a219 /test/headers | |
parent | 62d2e964e725bc8ca0841e9d532b65b083e7e027 (diff) | |
download | lv2-dbdbe3e518daf7b2f3f0e7587d8b2493b1d5a59e.tar.xz |
Fix clang and clang-tidy warnings in Windows
Diffstat (limited to 'test/headers')
-rw-r--r-- | test/headers/.clang-tidy | 2 | ||||
-rw-r--r-- | test/headers/meson.build | 6 |
2 files changed, 8 insertions, 0 deletions
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', |