Merge pull request #2846 from alalek:2.4_fix_python_warnings

This commit is contained in:
Alexander Alekhin 2014-06-18 13:19:11 +00:00
commit c99ce0f427

View File

@ -153,6 +153,8 @@ def gen(name, args, ty, flags):
ctype = remap.get(a.ty, a.ty)
if a.init:
init = " = %s" % a.init
elif ctype[-1] == '*':
init = ' = NULL'
else:
init = ''
yield " %s %s%s;" % (ctype, a.nm, init)