aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/cpp.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/cpp.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/cpp.py')
-rw-r--r--mesonbuild/compilers/cpp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py
index 16269be..c0b6812 100644
--- a/mesonbuild/compilers/cpp.py
+++ b/mesonbuild/compilers/cpp.py
@@ -69,7 +69,7 @@ class CPPCompiler(CLikeCompiler, Compiler):
return ['-nostdinc++']
def sanity_check(self, work_dir, environment):
- code = 'class breakCCompiler;int main(int argc, char **argv) { return 0; }\n'
+ code = 'class breakCCompiler;int main() { return 0; }\n'
return self.sanity_check_impl(work_dir, environment, 'sanitycheckcpp.cc', code)
def get_compiler_check_args(self):