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/objcpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/compilers/objcpp.py') diff --git a/mesonbuild/compilers/objcpp.py b/mesonbuild/compilers/objcpp.py index f74bbd8fe..f89235eb3 100644 --- a/mesonbuild/compilers/objcpp.py +++ b/mesonbuild/compilers/objcpp.py @@ -41,7 +41,7 @@ class ObjCPPCompiler(CLikeCompiler, Compiler): with open(source_name, 'w') as ofile: ofile.write('#import\n' 'class MyClass;' - '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.2.3