Workaround incorrect gcc 4.4 and 4.5 warning with -O2 -Wextra in generated code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12631 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f9def91f30
commit
139ccc434e
1 changed files with 1 additions and 1 deletions
|
|
@ -1889,7 +1889,7 @@ public:
|
|||
Append(f->code, "argc = args ? (int)PyObject_Length(args) : 0;\n");
|
||||
if (add_self)
|
||||
Append(f->code, "argv[0] = self;\n");
|
||||
Printf(f->code, "for (ii = 0; (ii < argc) && (ii < %d); ii++) {\n", add_self ? maxargs - 1 : maxargs);
|
||||
Printf(f->code, "for (ii = 0; (ii < %d) && (ii < argc); ii++) {\n", add_self ? maxargs - 1 : maxargs);
|
||||
Printf(f->code, "argv[ii%s] = PyTuple_GET_ITEM(args,ii);\n", add_self ? " + 1" : "");
|
||||
Append(f->code, "}\n");
|
||||
if (add_self)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue