diff options
author | jml1795 <45511331+jml1795@users.noreply.github.com> | 2019-02-18 17:06:27 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-02-19 00:06:27 +0200 |
commit | a9e63568fe4a1ef420cdb8bacb85fbf6d621dc0d (patch) | |
tree | 5b5159756428d3f403fe45d183412331d715b605 /mesonbuild/compilers/d.py | |
parent | 2cede4d6c9264f725ab57f48e929c748fa1f1ac8 (diff) | |
download | meson-a9e63568fe4a1ef420cdb8bacb85fbf6d621dc0d.zip meson-a9e63568fe4a1ef420cdb8bacb85fbf6d621dc0d.tar.gz meson-a9e63568fe4a1ef420cdb8bacb85fbf6d621dc0d.tar.bz2 |
Add warning level zero
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': |