Remove warnings from sample code. Closes #7248.

This commit is contained in:
Jussi Pakkanen 2020-06-07 20:27:18 +03:00
parent fd0ad977a6
commit 86df85d511
1 changed files with 1 additions and 1 deletions

View File

@ -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):