diff options
-rw-r--r-- | source3/lib/readline.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/lib/readline.c b/source3/lib/readline.c index 927c903255..fa2be0e16b 100644 --- a/source3/lib/readline.c +++ b/source3/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; } |