From: Dong-hee Na Date: Sun, 14 Feb 2021 06:54:39 +0000 (+0900) Subject: bpo-43152: Update assert statement to remove unused warning (GH-24473) X-Git-Tag: v3.10.0a6~93 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3cf0833f42ebde24f6435b838785ca4f946b988f;p=thirdparty%2FPython%2Fcpython.git bpo-43152: Update assert statement to remove unused warning (GH-24473) --- diff --git a/Python/ceval.c b/Python/ceval.c index 3b67a6b79bfb..9e4c2666ac6f 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; }