mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Make new gcc -Wall happy
This commit is contained in:
parent
bb3649e2ba
commit
1109fbca76
4 changed files with 13 additions and 7 deletions
|
@ -110,8 +110,9 @@ PyFunction_SetDefaults(op, defaults)
|
|||
}
|
||||
if (defaults == Py_None)
|
||||
defaults = NULL;
|
||||
else if (PyTuple_Check(defaults))
|
||||
else if (PyTuple_Check(defaults)) {
|
||||
Py_XINCREF(defaults);
|
||||
}
|
||||
else {
|
||||
PyErr_SetString(PyExc_SystemError, "non-tuple default args");
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue