]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
JIT: Fix compiler warning from visibility attribute in typedef (#139981)
authorSavannah Ostrowski <savannah@python.org>
Mon, 3 Nov 2025 19:46:53 +0000 (11:46 -0800)
committerGitHub <noreply@github.com>
Mon, 3 Nov 2025 19:46:53 +0000 (19:46 +0000)
Tools/jit/trampoline.c

index 79d6af97961fc92dedcc1ba38c9dcc02574c4491..fdc63b7fc40a89da4093841805f6856e20267ee1 100644 (file)
@@ -10,7 +10,7 @@ _Py_CODEUNIT *
 _JIT_ENTRY(
     _PyExecutorObject *exec, _PyInterpreterFrame *frame, _PyStackRef *stack_pointer, PyThreadState *tstate
 ) {
-    typedef DECLARE_TARGET((*jit_func));
-    jit_func jitted = (jit_func)exec->jit_code;
+    // Note that this is *not* a tail call
+    jit_func_preserve_none jitted = (jit_func_preserve_none)exec->jit_code;
     return jitted(frame, stack_pointer, tstate);
 }