Skip to content

Commit a2fedd8

Browse files
eamanumethane
authored andcommitted
bpo-36869: fix warning of unused variables (GH-13182)
1 parent 1b4abcf commit a2fedd8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Objects/dictobject.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ static PyObject *empty_values[1] = { NULL };
459459
int
460460
_PyDict_CheckConsistency(PyObject *op, int check_content)
461461
{
462+
#ifndef NDEBUG
462463
_PyObject_ASSERT(op, PyDict_Check(op));
463464
PyDictObject *mp = (PyDictObject *)op;
464465

@@ -517,7 +518,7 @@ _PyDict_CheckConsistency(PyObject *op, int check_content)
517518
}
518519
}
519520
}
520-
521+
#endif
521522
return 1;
522523
}
523524

0 commit comments

Comments
 (0)