Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 646fdd6

Browse files
committed
Fix compiler warning about unused static function.
1 parent c7f4af4 commit 646fdd6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Modules/readline.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,11 @@ static int using_libedit_emulation = 0;
6464
static const char libedit_version_tag[] = "EditLine wrapper";
6565
#endif /* __APPLE__ */
6666

67+
#ifdef HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK
6768
static void
6869
on_completion_display_matches_hook(char **matches,
6970
int num_matches, int max_length);
70-
71+
#endif
7172

7273
/* Exported function to send one line to readline's init file parser */
7374

@@ -774,6 +775,7 @@ on_pre_input_hook(void)
774775

775776
/* C function to call the Python completion_display_matches */
776777

778+
#ifdef HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK
777779
static void
778780
on_completion_display_matches_hook(char **matches,
779781
int num_matches, int max_length)
@@ -853,6 +855,7 @@ on_completion(const char *text, int state)
853855
}
854856
return result;
855857
}
858+
#endif
856859

857860

858861
/* A more flexible constructor that saves the "begidx" and "endidx"

0 commit comments

Comments
 (0)