From a9e63568fe4a1ef420cdb8bacb85fbf6d621dc0d Mon Sep 17 00:00:00 2001 From: jml1795 <45511331+jml1795@users.noreply.github.com> Date: Mon, 18 Feb 2019 17:06:27 -0500 Subject: Add warning level zero --- mesonbuild/compilers/objc.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mesonbuild/compilers/objc.py') 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'] -- cgit v1.1