summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-09-10 23:01:51 -0400
committerDavid Robillard <d@drobilla.net>2021-09-10 23:01:51 -0400
commitada0bf69712db85431589d71ca2abf5ebffcf0ce (patch)
tree28f1f9d717b79aae391d215ffb18952a7a2820f9
parent31a3e77b48bd63200538649c4292b2f61c68ee35 (diff)
downloadzix-ada0bf69712db85431589d71ca2abf5ebffcf0ce.tar.gz
zix-ada0bf69712db85431589d71ca2abf5ebffcf0ce.tar.bz2
zix-ada0bf69712db85431589d71ca2abf5ebffcf0ce.zip
Fix warning suppressions
-rw-r--r--meson.build8
1 files changed, 3 insertions, 5 deletions
diff --git a/meson.build b/meson.build
index 68195bf..51eb250 100644
--- a/meson.build
+++ b/meson.build
@@ -37,14 +37,14 @@ endif
# Set ultra strict warnings for developers, if requested
if get_option('strict')
if cc.get_id() == 'clang'
- c_warnings = [
+ c_warnings += [
'-Weverything',
'-Wno-bad-function-cast',
'-Wno-padded',
'-Wno-reserved-id-macro',
]
elif cc.get_id() == 'gcc'
- c_warnings = [
+ c_warnings += [
# '-Waggregate-return',
'-Walloc-size-larger-than=16384',
'-Walloc-zero',
@@ -112,7 +112,7 @@ if get_option('strict')
'-Wwrite-strings',
]
elif cc.get_id() == 'msvc'
- c_warnings = [
+ c_warnings += [
'/Wall', # everything, except...
'/wd4191', # unsafe function conversion
'/wd4200', # zero-sized array in struct/union
@@ -126,8 +126,6 @@ if get_option('strict')
'/wd4820', # padding added after construct
'/wd5045', # will insert Spectre mitigation for memory load
]
- else
- c_warnings = []
endif
if cc.get_id() == 'gcc' and host_machine.system() == 'windows'