diff options
Diffstat (limited to 'mesonbuild/compilers/d.py')
-rw-r--r-- | mesonbuild/compilers/d.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mesonbuild/compilers/d.py b/mesonbuild/compilers/d.py index afc287f..f1580b6 100644 --- a/mesonbuild/compilers/d.py +++ b/mesonbuild/compilers/d.py @@ -498,7 +498,8 @@ class GnuDCompiler(DCompiler): DCompiler.__init__(self, exelist, version, is_cross, arch, **kwargs) self.id = 'gcc' default_warn_args = ['-Wall', '-Wdeprecated'] - self.warn_args = {'1': default_warn_args, + self.warn_args = {'0': [], + '1': default_warn_args, '2': default_warn_args + ['-Wextra'], '3': default_warn_args + ['-Wextra', '-Wpedantic']} self.base_options = ['b_colorout', 'b_sanitize', 'b_staticpic', 'b_vscrt'] @@ -569,8 +570,10 @@ class LLVMDCompiler(DCompiler): def get_warn_args(self, level): if level == '2' or level == '3': return ['-wi', '-dw'] - else: + elif level == '1': return ['-wi'] + else: + return [] def get_buildtype_args(self, buildtype): if buildtype != 'plain': |