From: Emmanuel Arias Date: Fri, 10 May 2019 10:08:08 +0000 (-0300) Subject: bpo-36869: fix warning of unused variables (GH-13182) X-Git-Tag: v3.8.0b1~418 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a2fedd8c910cb5f5b9bd568d6fd44d63f8f5cfa5;p=python bpo-36869: fix warning of unused variables (GH-13182) --- diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 9b5c0a3be9..c8c88d2c0f 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; }