diff options
author | David Robillard <d@drobilla.net> | 2024-11-24 17:09:30 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-11-24 17:10:28 -0500 |
commit | 1d03a572d7d88819a0f024d0d110caae1c2f42ab (patch) | |
tree | 131cbb97dd04014b090c05ec26546b0377c4e44c /test/meson.build | |
parent | 55d397fe715502a6dabfa59e735eca32fa9f2f48 (diff) | |
download | zix-1d03a572d7d88819a0f024d0d110caae1c2f42ab.tar.gz zix-1d03a572d7d88819a0f024d0d110caae1c2f42ab.tar.bz2 zix-1d03a572d7d88819a0f024d0d110caae1c2f42ab.zip |
Clean up and strengthen warning flags
Some previously global suppressions were only actually needed in benchmarks or
tests, so move them there to keep the main set as small as possible.
Diffstat (limited to 'test/meson.build')
-rw-r--r-- | test/meson.build | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/test/meson.build b/test/meson.build index 309551f..63141bb 100644 --- a/test/meson.build +++ b/test/meson.build @@ -52,12 +52,20 @@ endif # Set warning suppression flags specific to tests test_suppressions = [] -if host_machine.system() == 'windows' - if cc.get_id() in ['clang', 'emscripten'] - test_suppressions += [ - '-Wno-format-nonliteral', - ] - elif cc.get_id() == 'gcc' +if cc.get_id() in ['clang', 'emscripten'] + if warning_level == 'everything' + test_suppressions += ['-Wno-bad-function-cast'] + + if host_machine.system() == 'windows' + if cc.get_id() in ['clang', 'emscripten'] + test_suppressions += ['-Wno-format-nonliteral'] + endif + endif + endif +elif cc.get_id() == 'gcc' + test_suppressions += ['-Wno-bad-function-cast'] + + if host_machine.system() == 'windows' test_suppressions += ['-Wno-format'] endif endif |