[Python-checkins] cpython (3.3): Issue #20374: Avoid compiler warnings when compiling readline with libedit.

georg.brandl python-checkins at python.org
Mon Feb 10 22:05:03 CET 2014


http://hg.python.org/cpython/rev/a7e048674fef
changeset:   89116:a7e048674fef
branch:      3.3
user:        Ned Deily <nad at acm.org>
date:        Wed Feb 05 16:53:10 2014 -0800
summary:
  Issue #20374: Avoid compiler warnings when compiling readline with libedit.

files:
  Modules/readline.c |  9 +++++++++
  1 files changed, 9 insertions(+), 0 deletions(-)


diff --git a/Modules/readline.c b/Modules/readline.c
--- a/Modules/readline.c
+++ b/Modules/readline.c
@@ -773,15 +773,24 @@
     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);
 }

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list