aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-09-08 18:35:25 -0400
committerDavid Robillard <d@drobilla.net>2022-09-08 18:35:25 -0400
commit8a7d896caf53bfb9f70cce71f0087c03d0d542d7 (patch)
tree6ff32ad69923c709e1a7a7b6ce029a7dcd8b05f8
parent3e0183ef54a88eb0f038c53778700f1490df6153 (diff)
downloadlv2-8a7d896caf53bfb9f70cce71f0087c03d0d542d7.tar.xz
Suppress Wbad-function-cast warnings on FreeBSD
-rw-r--r--plugins/eg-sampler.lv2/meson.build10
-rw-r--r--plugins/eg-scope.lv2/meson.build7
2 files changed, 11 insertions, 6 deletions
diff --git a/plugins/eg-sampler.lv2/meson.build b/plugins/eg-sampler.lv2/meson.build
index 8d78d44..0916ff6 100644
--- a/plugins/eg-sampler.lv2/meson.build
+++ b/plugins/eg-sampler.lv2/meson.build
@@ -52,12 +52,12 @@ if samplerate_dep.found() and sndfile_dep.found()
endif
endforeach
- ui_suppressions = c_suppressions
- if cc.get_id() == 'gcc'
- ui_suppressions += ['-Wno-strict-overflow']
- endif
-
if gtk2_dep.found()
+ ui_suppressions = c_suppressions
+ if cc.get_id() == 'gcc'
+ ui_suppressions += ['-Wno-strict-overflow']
+ endif
+
shared_library(
'sampler_ui',
ui_sources,
diff --git a/plugins/eg-scope.lv2/meson.build b/plugins/eg-scope.lv2/meson.build
index 773a3d0..c312d90 100644
--- a/plugins/eg-scope.lv2/meson.build
+++ b/plugins/eg-scope.lv2/meson.build
@@ -47,10 +47,15 @@ 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: c_suppressions,
+ c_args: ui_suppressions,
dependencies: [lv2_dep, gtk2_dep],
gnu_symbol_visibility: 'hidden',
install: true,