From 29b391b1378577825a658b14764a8ff3e0b5c958 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 26 Oct 2022 15:53:25 -0700 Subject: Fix readline.c compiler warning. (GH-98738) ``` Modules/readline.c:1260:37: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] completer_word_break_characters = ^ ``` --- Modules/readline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/readline.c b/Modules/readline.c index 1b616fc..27b89de 100644 --- a/Modules/readline.c +++ b/Modules/readline.c @@ -1258,9 +1258,9 @@ setup_readline(readlinestate *mod_state) rl_attempted_completion_function = flex_complete; /* Set Python word break characters */ completer_word_break_characters = - rl_completer_word_break_characters = strdup(" \t\n`~!@#$%^&*()-=+[{]}\\|;:'\",<>/?"); /* All nonalphanums except '.' */ + rl_completer_word_break_characters = completer_word_break_characters; mod_state->begidx = PyLong_FromLong(0L); mod_state->endidx = PyLong_FromLong(0L); -- cgit v0.12