From 1d03a572d7d88819a0f024d0d110caae1c2f42ab Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 24 Nov 2024 17:09:30 -0500 Subject: Clean up and strengthen warning flags Some previously global suppressions were only actually needed in benchmarks or tests, so move them there to keep the main set as small as possible. --- benchmark/meson.build | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'benchmark') diff --git a/benchmark/meson.build b/benchmark/meson.build index d3b04ea..3c231c6 100644 --- a/benchmark/meson.build +++ b/benchmark/meson.build @@ -17,13 +17,17 @@ if glib_dep.found() build_benchmarks = true benchmark_c_args = platform_c_args + benchmark_c_suppressions = [] if cc.get_id() in ['clang', 'emscripten'] benchmark_c_suppressions = [ + '-Wno-bad-function-cast', + '-Wno-c11-extensions', # Glib '-Wno-reserved-identifier', ] - - benchmark_c_args += cc.get_supported_arguments(benchmark_c_suppressions) + elif cc.get_id() == 'gcc' + benchmark_c_suppressions = ['-Wno-bad-function-cast'] endif + benchmark_c_args += cc.get_supported_arguments(benchmark_c_suppressions) foreach benchmark : benchmarks benchmark( -- cgit v1.2.1