diff options
author | Armin Rigo <arigo@tunes.org> | 2020-01-05 15:50:01 +0100 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2020-01-05 15:50:01 +0100 |
commit | 49c42d062185b9c28a9924a12aa99c4ff36aec5f (patch) | |
tree | 6ea4461c2f72d1b855e5276f1de5f439a30b84cb /cffi | |
parent | 674eaa4d5910ff50d964c6998c8ee002ce21679f (diff) | |
download | cffi-49c42d062185b9c28a9924a12aa99c4ff36aec5f.tar.gz |
fix some gcc warnings
Diffstat (limited to 'cffi')
-rw-r--r-- | cffi/recompiler.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cffi/recompiler.py b/cffi/recompiler.py index d6530e5..c3a3845 100644 --- a/cffi/recompiler.py +++ b/cffi/recompiler.py @@ -1216,7 +1216,8 @@ class Recompiler: size_of_result = '(int)sizeof(%s)' % ( tp.result.get_c_name('', context),) prnt('static struct _cffi_externpy_s _cffi_externpy__%s =' % name) - prnt(' { "%s.%s", %s };' % (self.module_name, name, size_of_result)) + prnt(' { "%s.%s", %s, 0, 0 };' % ( + self.module_name, name, size_of_result)) prnt() # arguments = [] |