From e3f18e645f05463ec012b242d18ea936e76a7e21 Mon Sep 17 00:00:00 2001 From: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Date: Sat, 18 Oct 2025 22:01:15 +0100 Subject: [PATCH] Cleanup warnings --- Python/optimizer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Python/optimizer.c b/Python/optimizer.c index 5fdd73d1e622..2d6f7f824c73 100644 --- a/Python/optimizer.c +++ b/Python/optimizer.c @@ -117,7 +117,6 @@ Py_NO_INLINE int _PyOptimizer_Optimize( _PyInterpreterFrame *frame, PyThreadState *tstate) { - _PyStackRef *stack_pointer = frame->stackpointer; PyInterpreterState *interp = _PyInterpreterState_GET(); int chain_depth = tstate->interp->jit_tracer_initial_chain_depth; assert(interp->jit); @@ -143,7 +142,7 @@ _PyOptimizer_Optimize( } // We are the only one still holding a reference to this code object that // is practically dead. - if (_PyObject_IsUniquelyReferenced(code) || _PyObject_IsUniquelyReferenced(tstate->interp->jit_tracer_initial_func)) { + if (_PyObject_IsUniquelyReferenced((PyObject *)code) || _PyObject_IsUniquelyReferenced((PyObject *)tstate->interp->jit_tracer_initial_func)) { interp->compiling = false; return 0; } -- 2.47.3