summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Arias <emmanuelarias30@gmail.com>2019-05-10 10:08:08 (GMT)
committerInada Naoki <songofacandy@gmail.com>2019-05-10 10:08:08 (GMT)
commita2fedd8c910cb5f5b9bd568d6fd44d63f8f5cfa5 (patch)
tree42be4e9dd11cfcfc1ea88ee2a0f807be8ca8d569
parent1b4abcf302ff2c8f4d4881294510d48ba5186b53 (diff)
downloadcpython-a2fedd8c910cb5f5b9bd568d6fd44d63f8f5cfa5.zip
cpython-a2fedd8c910cb5f5b9bd568d6fd44d63f8f5cfa5.tar.gz
cpython-a2fedd8c910cb5f5b9bd568d6fd44d63f8f5cfa5.tar.bz2
bpo-36869: fix warning of unused variables (GH-13182)
-rw-r--r--Objects/dictobject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index 9b5c0a3..c8c88d2 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;
}