aboutsummaryrefslogtreecommitdiffstats
path: root/meson/suppressions
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-04-03 09:00:23 -0400
committerDavid Robillard <d@drobilla.net>2023-04-06 07:19:10 -0400
commitf905bd8e17bfcee7240ee3174f5ed420043c8bad (patch)
tree0da35aa95bee7e21314af5cfdc5683d252efe009 /meson/suppressions
parent92f7c078250df898b24fce3af1ed6a9ae7d0c029 (diff)
downloadserd-f905bd8e17bfcee7240ee3174f5ed420043c8bad.tar.gz
serd-f905bd8e17bfcee7240ee3174f5ed420043c8bad.tar.bz2
serd-f905bd8e17bfcee7240ee3174f5ed420043c8bad.zip
Use new meson strict warning system
Meson includes warning_level=everything as of version 1.0.0, which supercedes maintaining redundant lists of warning flags here.
Diffstat (limited to 'meson/suppressions')
-rw-r--r--meson/suppressions/meson.build19
1 files changed, 12 insertions, 7 deletions
diff --git a/meson/suppressions/meson.build b/meson/suppressions/meson.build
index 0fabf3bf..508bbbd5 100644
--- a/meson/suppressions/meson.build
+++ b/meson/suppressions/meson.build
@@ -11,10 +11,12 @@
# C #
#####
+warning_level = get_option('warning_level')
+
if is_variable('cc')
c_suppressions = []
- if get_option('strict')
+ if warning_level == 'everything'
if cc.get_id() == 'clang'
c_suppressions += [
'-Wno-cast-align',
@@ -27,12 +29,6 @@ if is_variable('cc')
'-Wno-padded',
]
- if host_machine.system() == 'freebsd'
- c_suppressions += [
- '-Wno-c11-extensions',
- ]
- endif
-
if host_machine.system() == 'windows'
c_suppressions += [
'-Wno-deprecated-declarations',
@@ -78,10 +74,19 @@ if is_variable('cc')
]
elif cc.get_id() == 'msvc'
c_suppressions += [
+ '/experimental:external',
+ '/external:W0',
+ '/external:anglebrackets',
'/wd4706', # assignment within conditional expression
'/wd4996', # POSIX name for this item is deprecated
]
endif
+ if host_machine.system() == 'freebsd' and warning_level in ['3', 'everything']
+ c_suppressions += [
+ '-Wno-c11-extensions',
+ ]
+ endif
+
c_suppressions = cc.get_supported_arguments(c_suppressions)
endif