summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meson.build1
-rw-r--r--test/meson.build3
2 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index ea29713..1529390 100644
--- a/meson.build
+++ b/meson.build
@@ -32,6 +32,7 @@ if cpp.get_id() in ['clang', 'emscripten']
'-Wno-c++17-extensions',
'-Wno-c++98-compat',
'-Wno-padded',
+ '-Wno-unsafe-buffer-usage',
'-Wno-weak-vtables',
]
diff --git a/test/meson.build b/test/meson.build
index b7b3ce4..0b84e09 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -35,6 +35,7 @@ if cpp.get_id() == 'clang'
'-Wno-c++17-extensions',
'-Wno-c++98-compat',
'-Wno-padded',
+ '-Wno-unsafe-buffer-usage',
'-Wno-weak-vtables',
]
@@ -71,6 +72,8 @@ elif cpp.get_id() == 'msvc'
]
endif
+header_args = cpp.get_supported_arguments(header_args)
+
# Test that headers have (almost) no warnings (ignoring usual suppressions)
test(
'test_headers',