From 3cf0833f42ebde24f6435b838785ca4f946b988f Mon Sep 17 00:00:00 2001 From: Dong-hee Na Date: Sun, 14 Feb 2021 15:54:39 +0900 Subject: bpo-43152: Update assert statement to remove unused warning (GH-24473) --- Python/ceval.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Python/ceval.c') diff --git a/Python/ceval.c b/Python/ceval.c index 3b67a6b79b..9e4c2666ac 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -4744,8 +4744,7 @@ PyEval_EvalCodeEx(PyObject *_co, PyObject *globals, PyObject *locals, Py_DECREF(defaults); return NULL; } - PyCodeObject *code = (PyCodeObject *)_co; - assert ((code->co_flags & (CO_NEWLOCALS | CO_OPTIMIZED)) == 0); + assert ((((PyCodeObject *)_co)->co_flags & (CO_NEWLOCALS | CO_OPTIMIZED)) == 0); if (locals == NULL) { locals = globals; } -- cgit v1.2.3