From 83b4e981c4dd8b8ea521a6150a34636d10a67211 Mon Sep 17 00:00:00 2001 From: "Michael Hirsch, Ph.D" <10931741+scivision@users.noreply.github.com> Date: Mon, 18 Nov 2019 15:21:37 -0500 Subject: Use strict function prototypes --- mesonbuild/compilers/cpp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mesonbuild/compilers/cpp.py') diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py index 67a26dc67..6d45a842b 100644 --- a/mesonbuild/compilers/cpp.py +++ b/mesonbuild/compilers/cpp.py @@ -73,7 +73,7 @@ class CPPCompiler(CLikeCompiler, Compiler): return ['-nostdinc++'] def sanity_check(self, work_dir, environment): - code = 'class breakCCompiler;int main() { return 0; }\n' + code = 'class breakCCompiler;int main(void) { return 0; }\n' return self.sanity_check_impl(work_dir, environment, 'sanitycheckcpp.cc', code) def get_compiler_check_args(self): @@ -96,7 +96,7 @@ class CPPCompiler(CLikeCompiler, Compiler): t = '''{prefix} #include <{header}> using {symbol}; - int main () {{ return 0; }}''' + int main(void) {{ return 0; }}''' return self.compiles(t.format(**fargs), env, extra_args=extra_args, dependencies=dependencies) -- cgit v1.2.3