From fcf27c2a2d36f81168bd14d933799c171d2ffb81 Mon Sep 17 00:00:00 2001 From: David Seifert Date: Sun, 14 Jul 2019 09:54:19 +0200 Subject: Do not fail on passing `-Werror=unused-parameter` from environment --- mesonbuild/compilers/objc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/compilers/objc.py') diff --git a/mesonbuild/compilers/objc.py b/mesonbuild/compilers/objc.py index b45f75b..9730ea4 100644 --- a/mesonbuild/compilers/objc.py +++ b/mesonbuild/compilers/objc.py @@ -40,7 +40,7 @@ class ObjCCompiler(CLikeCompiler, Compiler): extra_flags += environment.coredata.get_external_link_args(self.for_machine, self.language) with open(source_name, 'w') as ofile: ofile.write('#import\n' - 'int main(int argc, char **argv) { return 0; }\n') + 'int main() { return 0; }\n') pc = subprocess.Popen(self.exelist + extra_flags + [source_name, '-o', binary_name]) pc.wait() if pc.returncode != 0: -- cgit v1.1