Commit c99ce0f4 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #2846 from alalek:2.4_fix_python_warnings

parents 2b2ce3f6 4d0848b3
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment