From a2fedd8c910cb5f5b9bd568d6fd44d63f8f5cfa5 Mon Sep 17 00:00:00 2001 From: Emmanuel Arias Date: Fri, 10 May 2019 07:08:08 -0300 Subject: bpo-36869: fix warning of unused variables (GH-13182) --- Objects/dictobject.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v0.12