diff options
-rw-r--r-- | meson/suppressions/meson.build | 1 | ||||
-rw-r--r-- | 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, |