diff options
author | Ned Deily <nad@acm.org> | 2014-02-06 00:53:10 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2014-02-06 00:53:10 (GMT) |
commit | 625895e46f06ea2a99d062ec9aab99292406a621 (patch) | |
tree | 4df251826f40f31c070b0a95f6851964b1a3b0c6 | |
parent | c81402527a274dffcb4ad09e9e0e600e2182b2cc (diff) | |
download | cpython-625895e46f06ea2a99d062ec9aab99292406a621.zip cpython-625895e46f06ea2a99d062ec9aab99292406a621.tar.gz cpython-625895e46f06ea2a99d062ec9aab99292406a621.tar.bz2 |
Issue #20374: Avoid compiler warnings when compiling readline with libedit.
-rw-r--r-- | Modules/readline.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Modules/readline.c b/Modules/readline.c index 4ee17a9..ae3e143 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); } |