From 7290c84ea46bf2edb63054469704c30fa5ea5cd8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 17 Dec 2021 17:09:29 -0500 Subject: Suppress new warnings in clang 13 --- meson.build | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/meson.build b/meson.build index a5fea1b..39ccf29 100644 --- a/meson.build +++ b/meson.build @@ -302,12 +302,22 @@ if not get_option('benchmarks').disabled() build_benchmarks = glib_dep.found() + benchmark_c_args = [] + if cc.get_id() == 'clang' + benchmark_c_args += [ + '-Wno-reserved-identifier', + ] + endif + + benchmark_c_args = cc.get_supported_arguments(benchmark_c_args) + if build_benchmarks foreach benchmark : benchmarks benchmark(benchmark, executable(benchmark, 'benchmark/@0@.c'.format(benchmark), include_directories: include_directories(['include']), + c_args: benchmark_c_args, dependencies: [zix_dep, glib_dep])) endforeach else -- cgit v1.2.1