diff options
author | David Seifert <soap@gentoo.org> | 2019-07-14 09:54:19 +0200 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2019-07-14 15:12:16 +0000 |
commit | fcf27c2a2d36f81168bd14d933799c171d2ffb81 (patch) | |
tree | dedcdaf84c0f56efe346fb4a39a81a52c27ba1ac /mesonbuild/compilers/c.py | |
parent | 6813ef1e2424cdcfc0811bb0c7b3d2efc996fd36 (diff) | |
download | meson-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/c.py')
-rw-r--r-- | mesonbuild/compilers/c.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py index fb2f8c5..deba5a3 100644 --- a/mesonbuild/compilers/c.py +++ b/mesonbuild/compilers/c.py @@ -58,7 +58,7 @@ class CCompiler(CLikeCompiler, Compiler): return ['-nostdinc'] def sanity_check(self, work_dir, environment): - code = 'int main(int argc, char **argv) { int class=0; return class; }\n' + code = 'int main() { int class=0; return class; }\n' return self.sanity_check_impl(work_dir, environment, 'sanitycheckc.c', code) def has_header_symbol(self, hname, symbol, prefix, env, *, extra_args=None, dependencies=None): |