[Python-checkins] bpo-36869: fix warning of unused variables (GH-13182)
Inada Naoki
webhook-mailer at python.org
Fri May 10 06:08:14 EDT 2019
https://github.com/python/cpython/commit/a2fedd8c910cb5f5b9bd568d6fd44d63f8f5cfa5
commit: a2fedd8c910cb5f5b9bd568d6fd44d63f8f5cfa5
branch: master
author: Emmanuel Arias <emmanuelarias30 at gmail.com>
committer: Inada Naoki <songofacandy at gmail.com>
date: 2019-05-10T19:08:08+09:00
summary:
bpo-36869: fix warning of unused variables (GH-13182)
files:
M Objects/dictobject.c
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index 9b5c0a3be9ab..c8c88d2c0fc5 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -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;
}
More information about the Python-checkins
mailing list