mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 13:47:32 +08:00
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)
|
||||
if a.init:
|
||||
init = " = %s" % a.init
|
||||
elif ctype[-1] == '*':
|
||||
init = ' = NULL'
|
||||
else:
|
||||
init = ''
|
||||
yield " %s %s%s;" % (ctype, a.nm, init)
|
||||
|
Loading…
Reference in New Issue
Block a user