summaryrefslogtreecommitdiff
path: root/cffi
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2020-01-05 15:50:01 +0100
committerArmin Rigo <arigo@tunes.org>2020-01-05 15:50:01 +0100
commit49c42d062185b9c28a9924a12aa99c4ff36aec5f (patch)
tree6ea4461c2f72d1b855e5276f1de5f439a30b84cb /cffi
parent674eaa4d5910ff50d964c6998c8ee002ce21679f (diff)
downloadcffi-49c42d062185b9c28a9924a12aa99c4ff36aec5f.tar.gz
fix some gcc warnings
Diffstat (limited to 'cffi')
-rw-r--r--cffi/recompiler.py3
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 = []