diff options
author | David Robillard <d@drobilla.net> | 2023-05-04 06:20:05 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-05-04 06:20:05 -0400 |
commit | 54570dc09a0de4c4773e9ca7a6fef80c3bcdfc2e (patch) | |
tree | 8ed44deadeb79bb496c31e3b4dcab61df48b3dfa /meson.build | |
parent | 8afe1814483ec10f1f425a60d1fc80fe6e3cd8f1 (diff) | |
download | chilbert-main.tar.gz chilbert-main.tar.bz2 chilbert-main.zip |
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 52b9012..ccbac27 100644 --- a/meson.build +++ b/meson.build @@ -54,6 +54,14 @@ elif cpp.get_id() == 'gcc' endif elif cpp.get_id() == 'msvc' + cpp_suppressions += [ + '/experimental:external', + '/external:W0', + '/external:anglebrackets', + + '/wd4146', # unary minus operator applied to unsigned type + ] + if warning_level == 'everything' cpp_suppressions += [ '/wd4028', # formal parameter different from declaration @@ -65,6 +73,24 @@ elif cpp.get_id() == 'msvc' '/wd4711', # function selected for automatic inline expansion '/wd4820', # padding added after construct '/wd5045', # will insert Spectre mitigation + + '/wd4625', # copy constructor implicitly deleted + '/wd4626', # assignment operator implicitly deleted + '/wd5026', # move constructor implicitly deleted + '/wd5027', # move assignment operator implicitly deleted + '/wd5246', # subobject should be wrapped in braces + ] + endif + + if warning_level in ['everything', '3'] + cpp_suppressions += [ + '/wd4127', # conditional expression is constant + ] + endif + + if warning_level in ['everything', '3', '2', '1'] + cpp_suppressions += [ + '/wd4146', # unary minus operator applied to unsigned type ] endif endif |