diff --git a/Python/ceval.c b/Python/ceval.c index d5493cc0c64..6bc35d07865 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -3488,9 +3488,10 @@ call_function(PyObject ***pp_stack, int oparg PyObject *func = *pfunc; PyObject *x, *w; +#ifdef WITH_C_PROF int are_tracing = 0; - PyThreadState *tstate = PyThreadState_GET(); +#endif /* Always dispatch PyCFunction first, because these are presumed to be the most frequent callable object.