Cleanup: quiet possible comma misuse warning in feestyle PyAPI

This commit is contained in:
2020-07-29 10:53:00 +10:00
parent 1e76441dd6
commit a3c6304a27
23 changed files with 39 additions and 37 deletions

View File

@@ -75,7 +75,7 @@ static int Id_init(BPy_Id *self, PyObject *args, PyObject *kwds)
if (PyArg_ParseTupleAndKeywords(args, kwds, "O!", (char **)kwlist_1, &Id_Type, &brother)) {
self->id = new Id(*(((BPy_Id *)brother)->id));
}
else if (PyErr_Clear(),
else if ((void)PyErr_Clear(),
PyArg_ParseTupleAndKeywords(args, kwds, "|ii", (char **)kwlist_2, &first, &second)) {
self->id = new Id(first, second);
}