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 /meson/suppressions | |
parent | 62d2e964e725bc8ca0841e9d532b65b083e7e027 (diff) | |
download | lv2-dbdbe3e518daf7b2f3f0e7587d8b2493b1d5a59e.tar.xz |
Fix clang and clang-tidy warnings in Windows
Diffstat (limited to 'meson/suppressions')
-rw-r--r-- | meson/suppressions/meson.build | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/meson/suppressions/meson.build b/meson/suppressions/meson.build index 834695c..72c68be 100644 --- a/meson/suppressions/meson.build +++ b/meson/suppressions/meson.build @@ -33,6 +33,13 @@ if is_variable('cc') '-Wno-switch-enum', '-Wno-unused-parameter', ] + + if host_machine.system() == 'windows' + c_suppressions += [ + '-Wno-format-nonliteral', + ] + endif + elif cc.get_id() == 'gcc' c_suppressions += [ '-Wno-bad-function-cast', @@ -91,7 +98,7 @@ if is_variable('cpp') if get_option('strict') if cpp.get_id() in ['clang', 'emscripten'] - cpp_suppressions = [ + cpp_suppressions += [ '-Wno-cast-align', '-Wno-cast-qual', '-Wno-documentation-unknown-command', @@ -100,8 +107,14 @@ if is_variable('cpp') '-Wno-reserved-id-macro', ] + if host_machine.system() == 'windows' + cpp_suppressions += [ + '-Wno-format-nonliteral', + ] + endif + elif cpp.get_id() == 'gcc' - cpp_suppressions = [ + cpp_suppressions += [ '-Wno-cast-align', '-Wno-cast-qual', '-Wno-inline', @@ -117,7 +130,7 @@ if is_variable('cpp') endif elif cpp.get_id() == 'msvc' - cpp_suppressions = [ + cpp_suppressions += [ '/wd4514', # unreferenced inline function has been removed '/wd4706', # assignment within conditional expression '/wd4710', # function not inlined |