Skip to content

Commit 57f4d09

Browse files
JIT: Fix compiler warning from visibility attribute in typedef (#139981)
1 parent c98c5b3 commit 57f4d09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tools/jit/trampoline.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ _Py_CODEUNIT *
1010
_JIT_ENTRY(
1111
_PyExecutorObject *exec, _PyInterpreterFrame *frame, _PyStackRef *stack_pointer, PyThreadState *tstate
1212
) {
13-
typedef DECLARE_TARGET((*jit_func));
14-
jit_func jitted = (jit_func)exec->jit_code;
13+
// Note that this is *not* a tail call
14+
jit_func_preserve_none jitted = (jit_func_preserve_none)exec->jit_code;
1515
return jitted(frame, stack_pointer, tstate);
1616
}

0 commit comments

Comments
 (0)