aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/objc.py
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2019-07-14 09:54:19 +0200
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2019-07-14 15:12:16 +0000
commitfcf27c2a2d36f81168bd14d933799c171d2ffb81 (patch)
treededcdaf84c0f56efe346fb4a39a81a52c27ba1ac /mesonbuild/compilers/objc.py
parent6813ef1e2424cdcfc0811bb0c7b3d2efc996fd36 (diff)
downloadmeson-fcf27c2a2d36f81168bd14d933799c171d2ffb81.zip
meson-fcf27c2a2d36f81168bd14d933799c171d2ffb81.tar.gz
meson-fcf27c2a2d36f81168bd14d933799c171d2ffb81.tar.bz2
Do not fail on passing `-Werror=unused-parameter` from environment
Diffstat (limited to 'mesonbuild/compilers/objc.py')
-rw-r--r--mesonbuild/compilers/objc.py2
1 files changed, 1 insertions, 1 deletions
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<stdio.h>\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: