Merge pull request #2846 from alalek:2.4_fix_python_warnings
This commit is contained in:
commit
c99ce0f427
@ -153,6 +153,8 @@ def gen(name, args, ty, flags):
|
|||||||
ctype = remap.get(a.ty, a.ty)
|
ctype = remap.get(a.ty, a.ty)
|
||||||
if a.init:
|
if a.init:
|
||||||
init = " = %s" % a.init
|
init = " = %s" % a.init
|
||||||
|
elif ctype[-1] == '*':
|
||||||
|
init = ' = NULL'
|
||||||
else:
|
else:
|
||||||
init = ''
|
init = ''
|
||||||
yield " %s %s%s;" % (ctype, a.nm, init)
|
yield " %s %s%s;" % (ctype, a.nm, init)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user