From: Ned Deily Date: Thu, 6 Feb 2014 00:53:10 +0000 (-0800) Subject: Issue #20374: Avoid compiler warnings when compiling readline with libedit. X-Git-Tag: v3.3.4~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=625895e46f06ea2a99d062ec9aab99292406a621;p=python Issue #20374: Avoid compiler warnings when compiling readline with libedit. --- diff --git a/Modules/readline.c b/Modules/readline.c index 4ee17a91cd..ae3e14365f 100644 --- a/Modules/readline.c +++ b/Modules/readline.c @@ -773,15 +773,24 @@ on_hook(PyObject *func) return result; } + static int +#if defined(_RL_FUNCTION_TYPEDEF) on_startup_hook(void) +#else +on_startup_hook() +#endif { return on_hook(startup_hook); } #ifdef HAVE_RL_PRE_INPUT_HOOK static int +#if defined(_RL_FUNCTION_TYPEDEF) on_pre_input_hook(void) +#else +on_pre_input_hook() +#endif { return on_hook(pre_input_hook); }