Skip to content

Commit 29b391b

Browse files
authored
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 = ^ ```
1 parent a508631 commit 29b391b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/readline.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1258,9 +1258,9 @@ setup_readline(readlinestate *mod_state)
12581258
rl_attempted_completion_function = flex_complete;
12591259
/* Set Python word break characters */
12601260
completer_word_break_characters =
1261-
rl_completer_word_break_characters =
12621261
strdup(" \t\n`~!@#$%^&*()-=+[{]}\\|;:'\",<>/?");
12631262
/* All nonalphanums except '.' */
1263+
rl_completer_word_break_characters = completer_word_break_characters;
12641264

12651265
mod_state->begidx = PyLong_FromLong(0L);
12661266
mod_state->endidx = PyLong_FromLong(0L);

0 commit comments

Comments
 (0)