diff options
author | David Robillard <d@drobilla.net> | 2022-09-08 18:38:40 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-09-08 19:03:49 -0400 |
commit | b618c88c3a2e435846472c2b17c4df549b1a47f7 (patch) | |
tree | ccef81ef1ffe83e5c06661fe0c2fd54d56a8f8a5 | |
parent | 8a7d896caf53bfb9f70cce71f0087c03d0d542d7 (diff) | |
download | lv2-b618c88c3a2e435846472c2b17c4df549b1a47f7.tar.xz |
Suppress Wbad-function-cast everywhere
Enough of this.
-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, |