aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-09-08 18:38:40 -0400
committerDavid Robillard <d@drobilla.net>2022-09-08 19:03:49 -0400
commitb618c88c3a2e435846472c2b17c4df549b1a47f7 (patch)
treeccef81ef1ffe83e5c06661fe0c2fd54d56a8f8a5
parent8a7d896caf53bfb9f70cce71f0087c03d0d542d7 (diff)
downloadlv2-b618c88c3a2e435846472c2b17c4df549b1a47f7.tar.xz
Suppress Wbad-function-cast everywhere
Enough of this.
-rw-r--r--meson/suppressions/meson.build1
-rw-r--r--plugins/eg-scope.lv2/meson.build7
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,