diff options
-rw-r--r-- | meson/suppressions/meson.build | 12 | ||||
-rw-r--r-- | test/meson.build | 8 |
2 files changed, 17 insertions, 3 deletions
diff --git a/meson/suppressions/meson.build b/meson/suppressions/meson.build index b134f3c..a92c808 100644 --- a/meson/suppressions/meson.build +++ b/meson/suppressions/meson.build @@ -16,14 +16,20 @@ if is_variable('cpp') if get_option('strict') if cpp.get_id() in ['clang', 'emscripten'] - cpp_suppressions = [ + cpp_suppressions += [ '-Wno-c++17-extensions', '-Wno-padded', '-Wno-weak-vtables', ] + if host_machine.system() == 'windows' + cpp_suppressions += [ + '-Wno-nonportable-system-include-path', + ] + endif + elif cpp.get_id() == 'gcc' - cpp_suppressions = [ + cpp_suppressions += [ '-Wno-abi-tag', '-Wno-inline', '-Wno-multiple-inheritance', @@ -34,7 +40,7 @@ if is_variable('cpp') ] elif cpp.get_id() == 'msvc' - cpp_suppressions = [ + cpp_suppressions += [ '/wd4514', # unreferenced inline function removed '/wd4625', # copy constructor implicitly deleted '/wd4626', # assignment operator implicitly deleted diff --git a/test/meson.build b/test/meson.build index 829a59c..0c073b8 100644 --- a/test/meson.build +++ b/test/meson.build @@ -36,6 +36,13 @@ if cpp.get_id() == 'clang' '-Wno-padded', '-Wno-weak-vtables', ] + + if host_machine.system() == 'windows' + header_args += [ + '-Wno-nonportable-system-include-path', + ] + endif + elif cpp.get_id() == 'gcc' header_args += [ '-Wno-abi-tag', @@ -44,6 +51,7 @@ elif cpp.get_id() == 'gcc' '-Wno-switch-default', '-Wno-useless-cast', ] + elif cpp.get_id() == 'msvc' header_args += [ '/wd4626', # assignment operator implicitly deleted |