diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2020-06-07 20:27:18 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-06-07 20:27:18 +0300 |
commit | 86df85d511c8a6c92da248372b47522d0a7e1aec (patch) | |
tree | ceedf79859e340b140fa4becfd95dec64d090059 /mesonbuild/compilers | |
parent | fd0ad977a6983a01415f103a2e3dfe53b22cb5a3 (diff) | |
download | meson-86df85d511c8a6c92da248372b47522d0a7e1aec.zip meson-86df85d511c8a6c92da248372b47522d0a7e1aec.tar.gz meson-86df85d511c8a6c92da248372b47522d0a7e1aec.tar.bz2 |
Remove warnings from sample code. Closes #7248.
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r-- | mesonbuild/compilers/mixins/clike.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/mixins/clike.py b/mesonbuild/compilers/mixins/clike.py index 1bbe698..b088fde 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): |