From 86df85d511c8a6c92da248372b47522d0a7e1aec Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sun, 7 Jun 2020 20:27:18 +0300 Subject: [PATCH] Remove warnings from sample code. Closes #7248. --- mesonbuild/compilers/mixins/clike.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/compilers/mixins/clike.py b/mesonbuild/compilers/mixins/clike.py index 1bbe6986a..b088fde2b 100644 --- a/mesonbuild/compilers/mixins/clike.py +++ b/mesonbuild/compilers/mixins/clike.py @@ -1108,7 +1108,7 @@ class CLikeCompiler: 'the compiler you are using. has_link_argument or ' 'other similar method can be used instead.' .format(arg)) - code = 'int i;\n' + code = 'extern int i;\nint i;\n' return self.has_arguments(args, env, code, mode='compile') def has_multi_link_arguments(self, args, env):