summaryrefslogtreecommitdiffstats
path: root/source/lib/readline.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/lib/readline.c')
-rw-r--r--source/lib/readline.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/lib/readline.c b/source/lib/readline.c
index 927c903255f..fa2be0e16bd 100644
--- a/source/lib/readline.c
+++ b/source/lib/readline.c
@@ -74,9 +74,12 @@ char *smb_readline(char *prompt, void (*callback)(void),
if (completion_fn) {
/* The callback prototype has changed slightly between
- different versions of Readline, so the same
- function works in all of them to date, but we get
- compiler warnings in some. */
+ different versions of Readline, so the same function
+ works in all of them to date, but we get compiler
+ warnings in some. NOTE: that not all versions of
+ readline have rl_completion_func_t so attempting to cast
+ the statement below to get rid of the warning will not
+ compile for everyone. */
rl_attempted_completion_function = completion_fn;
}