From 646fdd6c610baa551b6c3807cc61bc79075db092 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Mon, 18 Oct 2010 07:27:55 +0000 Subject: [PATCH] Fix compiler warning about unused static function. --- Modules/readline.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Modules/readline.c b/Modules/readline.c index 18908ef4e6e..bad8586b927 100644 --- a/Modules/readline.c +++ b/Modules/readline.c @@ -64,10 +64,11 @@ static int using_libedit_emulation = 0; static const char libedit_version_tag[] = "EditLine wrapper"; #endif /* __APPLE__ */ +#ifdef HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK static void on_completion_display_matches_hook(char **matches, int num_matches, int max_length); - +#endif /* Exported function to send one line to readline's init file parser */ @@ -774,6 +775,7 @@ on_pre_input_hook(void) /* C function to call the Python completion_display_matches */ +#ifdef HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK static void on_completion_display_matches_hook(char **matches, int num_matches, int max_length) @@ -853,6 +855,7 @@ on_completion(const char *text, int state) } return result; } +#endif /* A more flexible constructor that saves the "begidx" and "endidx"