Add support for readline 8.2

In readline 8.2 the type of rl_completer_word_break_characters changed to
include const.
This commit is contained in:
Andreas Schwab 2022-03-20 14:01:54 +01:00
parent 692e92c5af
commit 1add37b567

View file

@ -36,7 +36,7 @@
calling a hook instead so we eliminate the CLI dependency. */
#include "gdbcmd.h"
/* Needed for rl_completer_word_break_characters() and for
/* Needed for rl_completer_word_break_characters and for
rl_filename_completion_function. */
#include "readline/readline.h"
@ -2011,7 +2011,7 @@ gdb_completion_word_break_characters_throw ()
rl_basic_quote_characters = NULL;
}
return rl_completer_word_break_characters;
return (char *) rl_completer_word_break_characters;
}
char *