Skip to content

Commit 4c7837f

Browse files
committed
Fix warning about unused function on macos
1 parent 8651ebe commit 4c7837f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Python/perf_trampoline.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,13 +471,15 @@ _PyPerfTrampoline_SetCallbacks(_PyPerf_Callbacks *callbacks)
471471
return 0;
472472
}
473473

474+
#ifdef PY_HAVE_PERF_TRAMPOLINE
474475
static void
475476
set_eval_frame(PyThreadState *tstate, _PyFrameEvalFunction eval_frame)
476477
{
477478
_PyEval_StopTheWorld(tstate->interp);
478479
tstate->interp->eval_frame = eval_frame;
479480
_PyEval_StartTheWorld(tstate->interp);
480481
}
482+
#endif
481483

482484
int
483485
_PyPerfTrampoline_Init(int activate)

0 commit comments

Comments
 (0)