From 9c72bba439dc4c4391b73abe607d5bef02f57819 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 21 Sep 2023 22:15:16 -0400 Subject: Suppress new warnings in clang 16 --- meson.build | 1 + test/meson.build | 3 +++ 2 files changed, 4 insertions(+) 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', -- cgit v1.2.1