gcc complained that a variable might be used uninitialized, which is
true. If NULL is passed, all code gets executed with an
uninitialized variable which is an error in almost every case.
Since python itself never passes NULL, only a real error in
other c code could trigger the assert.
old_type = arg.hdr_type
new_type = arg.type
if old_type.is_pyobject:
- code.putln("if (likely(%s)) {" % arg.hdr_cname)
+ code.putln("assert(%s);" % arg.hdr_cname)
self.generate_arg_conversion_from_pyobject(arg, code)
- code.putln("}")
elif new_type.is_pyobject:
self.generate_arg_conversion_to_pyobject(arg, code)
else: