bpo-36869: fix warning of unused variables (GH-13182)

This commit is contained in:
Emmanuel Arias 2019-05-10 07:08:08 -03:00 committed by Inada Naoki
parent 1b4abcf302
commit a2fedd8c91
1 changed files with 2 additions and 1 deletions

View File

@ -459,6 +459,7 @@ static PyObject *empty_values[1] = { NULL };
int
_PyDict_CheckConsistency(PyObject *op, int check_content)
{
#ifndef NDEBUG
_PyObject_ASSERT(op, PyDict_Check(op));
PyDictObject *mp = (PyDictObject *)op;
@ -517,7 +518,7 @@ _PyDict_CheckConsistency(PyObject *op, int check_content)
}
}
}
#endif
return 1;
}