From 2201f753f6ddc79211f47b2d1b51ad1670acd048 Mon Sep 17 00:00:00 2001 From: Donghee Na Date: Fri, 29 Sep 2023 00:12:01 +0900 Subject: [PATCH] fix --- Modules/readline.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Modules/readline.c b/Modules/readline.c index acf0349897131f..2dfa141e39d07f 100644 --- a/Modules/readline.c +++ b/Modules/readline.c @@ -1018,16 +1018,12 @@ on_hook(PyObject *func) static int #if defined(_RL_FUNCTION_TYPEDEF) on_startup_hook(void) -{ -#elif defined(__APPLE__) && defined(WITH_APPLE_EDITLINE) -on_startup_hook(const char *text, int state) -{ - (void)text; - (void)state; +#elif defined(WITH_APPLE_EDITLINE) +on_startup_hook(const char *Py_UNUSED(text), int Py_UNUSED(state) #else on_startup_hook(void) -{ #endif +{ int r; PyGILState_STATE gilstate = PyGILState_Ensure(); r = on_hook(readlinestate_global->startup_hook);