aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/objc.py
diff options
context:
space:
mode:
authorjml1795 <45511331+jml1795@users.noreply.github.com>2019-02-18 17:06:27 -0500
committerJussi Pakkanen <jpakkane@gmail.com>2019-02-19 00:06:27 +0200
commita9e63568fe4a1ef420cdb8bacb85fbf6d621dc0d (patch)
tree5b5159756428d3f403fe45d183412331d715b605 /mesonbuild/compilers/objc.py
parent2cede4d6c9264f725ab57f48e929c748fa1f1ac8 (diff)
downloadmeson-a9e63568fe4a1ef420cdb8bacb85fbf6d621dc0d.zip
meson-a9e63568fe4a1ef420cdb8bacb85fbf6d621dc0d.tar.gz
meson-a9e63568fe4a1ef420cdb8bacb85fbf6d621dc0d.tar.bz2
Add warning level zero
Diffstat (limited to 'mesonbuild/compilers/objc.py')
-rw-r--r--mesonbuild/compilers/objc.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/mesonbuild/compilers/objc.py b/mesonbuild/compilers/objc.py
index cf58ffb..8dfd0a2 100644
--- a/mesonbuild/compilers/objc.py
+++ b/mesonbuild/compilers/objc.py
@@ -55,7 +55,8 @@ class GnuObjCCompiler(GnuCompiler, ObjCCompiler):
ObjCCompiler.__init__(self, exelist, version, is_cross, exe_wrapper)
GnuCompiler.__init__(self, compiler_type, defines)
default_warn_args = ['-Wall', '-Winvalid-pch']
- 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']}
@@ -65,7 +66,8 @@ class ClangObjCCompiler(ClangCompiler, ObjCCompiler):
ObjCCompiler.__init__(self, exelist, version, is_cross, exe_wrapper)
ClangCompiler.__init__(self, compiler_type)
default_warn_args = ['-Wall', '-Winvalid-pch']
- 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_pch', 'b_lto', 'b_pgo', 'b_sanitize', 'b_coverage']