diff options
-rw-r--r-- | meson.build | 1 | ||||
-rw-r--r-- | test/meson.build | 19 |
2 files changed, 6 insertions, 14 deletions
diff --git a/meson.build b/meson.build index 5d47c51..7a8d68c 100644 --- a/meson.build +++ b/meson.build @@ -39,7 +39,6 @@ if cc.get_id() in ['clang', 'emscripten'] '-Wno-implicit-fallthrough', # Really for clang < 12 '-Wno-padded', '-Wno-switch-default', - '-Wno-unknown-warning-option', '-Wno-unsafe-buffer-usage', '-Wno-unsafe-buffer-usage-in-libc-call', ] diff --git a/test/meson.build b/test/meson.build index 1e30f41..0db182c 100644 --- a/test/meson.build +++ b/test/meson.build @@ -147,15 +147,11 @@ if cc.get_id() != 'emscripten' ] if not meson.is_cross_build() - header_suppressions += [ - '-Wno-poison-system-directories', - ] + header_suppressions += ['-Wno-poison-system-directories'] endif if host_machine.system() == 'windows' - header_suppressions += [ - '-Wno-nonportable-system-include-path', - ] + header_suppressions += ['-Wno-nonportable-system-include-path'] endif elif cc.get_id() == 'gcc' @@ -199,21 +195,16 @@ if add_languages(['cpp'], native: false, required: get_option('tests_cpp')) '-Wno-c++98-compat-pedantic', '-Wno-nullability-extension', '-Wno-padded', - '-Wno-unknown-warning-option', '-Wno-unsafe-buffer-usage-in-libc-call', '-Wno-zero-as-null-pointer-constant', ] if not meson.is_cross_build() - cpp_test_args += [ - '-Wno-poison-system-directories', - ] + cpp_test_args += ['-Wno-poison-system-directories'] endif if host_machine.system() == 'windows' - cpp_test_args += [ - '-Wno-nonportable-system-include-path', - ] + cpp_test_args += ['-Wno-nonportable-system-include-path'] endif elif cpp.get_id() == 'gcc' @@ -241,6 +232,8 @@ if add_languages(['cpp'], native: false, required: get_option('tests_cpp')) ] endif + cpp_test_args = cpp.get_supported_arguments(cpp_test_args) + test( 'headers_cpp', executable( |