summaryrefslogtreecommitdiffstats
path: root/test/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'test/meson.build')
-rw-r--r--test/meson.build20
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