Skip to content

Commit

Permalink
Shut up annoying warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Apr 30, 2024
1 parent fdbe440 commit 3c919bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Python/pystate.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,9 @@ free_interpreter(PyInterpreterState *interp)
}
}

#ifdef Py_DEBUG
static inline int check_interpreter_whence(long);
#endif

/* Get the interpreter state to a minimal consistent state.
Further init happens in pylifecycle.c before it can be used.
Expand Down Expand Up @@ -1123,6 +1125,7 @@ _PyInterpreterState_IsReady(PyInterpreterState *interp)
}


#ifdef Py_DEBUG
static inline int
check_interpreter_whence(long whence)
{
Expand All @@ -1134,6 +1137,7 @@ check_interpreter_whence(long whence)
}
return 0;
}
#endif

long
_PyInterpreterState_GetWhence(PyInterpreterState *interp)
Expand Down

0 comments on commit 3c919bb

Please sign in to comment.