summaryrefslogtreecommitdiffstats
path: root/meson
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-08-09 10:14:24 -0400
committerDavid Robillard <d@drobilla.net>2022-08-09 10:15:33 -0400
commit2fe96befa61a99ffb3c3abb9c10d0f529bb5e82c (patch)
tree8a838b932a0608de54a055f85f193db89f29d76c /meson
parent665beacee489d09c14310489ef00f86119a1cb78 (diff)
downloadlilv-2fe96befa61a99ffb3c3abb9c10d0f529bb5e82c.tar.gz
lilv-2fe96befa61a99ffb3c3abb9c10d0f529bb5e82c.tar.bz2
lilv-2fe96befa61a99ffb3c3abb9c10d0f529bb5e82c.zip
Suppress MSVC warning in non-strict builds
Diffstat (limited to 'meson')
-rw-r--r--meson/suppressions/meson.build7
1 files changed, 6 insertions, 1 deletions
diff --git a/meson/suppressions/meson.build b/meson/suppressions/meson.build
index d0593f2..722b754 100644
--- a/meson/suppressions/meson.build
+++ b/meson/suppressions/meson.build
@@ -79,7 +79,6 @@ if is_variable('cc')
elif cc.get_id() == 'msvc'
c_suppressions += [
'/wd4061', # enumerator in switch is not explicitly handled
- '/wd4090', # different const qualifiers
'/wd4191', # unsafe conversion from FARPROC
'/wd4244', # conversion from floating point, possible loss of data
'/wd4267', # conversion from size_t, possible loss of data
@@ -96,6 +95,12 @@ if is_variable('cc')
]
endif
+ else
+ if cc.get_id() == 'msvc'
+ c_suppressions += [
+ '/wd4090', # different const qualifiers
+ ]
+ endif
endif
c_suppressions = cc.get_supported_arguments(c_suppressions)