From b618c88c3a2e435846472c2b17c4df549b1a47f7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 8 Sep 2022 18:38:40 -0400 Subject: Suppress Wbad-function-cast everywhere Enough of this. --- meson/suppressions/meson.build | 1 + plugins/eg-scope.lv2/meson.build | 7 +------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/meson/suppressions/meson.build b/meson/suppressions/meson.build index 70129a5..66510f9 100644 --- a/meson/suppressions/meson.build +++ b/meson/suppressions/meson.build @@ -17,6 +17,7 @@ if is_variable('cc') if get_option('strict') if cc.get_id() in ['clang', 'emscripten'] c_suppressions += [ + '-Wno-bad-function-cast', '-Wno-cast-align', '-Wno-cast-qual', '-Wno-declaration-after-statement', diff --git a/plugins/eg-scope.lv2/meson.build b/plugins/eg-scope.lv2/meson.build index c312d90..773a3d0 100644 --- a/plugins/eg-scope.lv2/meson.build +++ b/plugins/eg-scope.lv2/meson.build @@ -47,15 +47,10 @@ foreach filename : data_filenames endforeach if gtk2_dep.found() - ui_suppressions = c_suppressions - if cc.get_id() == 'gcc' - ui_suppressions += ['-Wno-bad-function-cast'] - endif - shared_library( 'examploscope_ui', ui_sources, - c_args: ui_suppressions, + c_args: c_suppressions, dependencies: [lv2_dep, gtk2_dep], gnu_symbol_visibility: 'hidden', install: true, -- cgit v1.2.1