Avoid gcc uninitialized variable warnings in Python wrappers.
Just initialize the local array with zeroes. Closes #453.
This commit is contained in:
parent
3ab7315cf9
commit
812f789db6
1 changed files with 1 additions and 1 deletions
|
|
@ -2385,7 +2385,7 @@ public:
|
||||||
Printv(f->def, linkage, builtin_ctor ? "int " : "PyObject *", wname, "(PyObject *self, PyObject *args) {", NIL);
|
Printv(f->def, linkage, builtin_ctor ? "int " : "PyObject *", wname, "(PyObject *self, PyObject *args) {", NIL);
|
||||||
|
|
||||||
Wrapper_add_local(f, "argc", "int argc");
|
Wrapper_add_local(f, "argc", "int argc");
|
||||||
Printf(tmp, "PyObject *argv[%d]", maxargs + 1);
|
Printf(tmp, "PyObject *argv[%d] = {0}", maxargs + 1);
|
||||||
Wrapper_add_local(f, "argv", tmp);
|
Wrapper_add_local(f, "argv", tmp);
|
||||||
|
|
||||||
if (!fastunpack) {
|
if (!fastunpack) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue