Skip to content

Commit 5074c35

Browse files
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 = ^ ``` (cherry picked from commit 29b391b) Co-authored-by: Benjamin Peterson <[email protected]>
1 parent f786485 commit 5074c35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/readline.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,9 +1256,9 @@ setup_readline(readlinestate *mod_state)
12561256
rl_attempted_completion_function = flex_complete;
12571257
/* Set Python word break characters */
12581258
completer_word_break_characters =
1259-
rl_completer_word_break_characters =
12601259
strdup(" \t\n`~!@#$%^&*()-=+[{]}\\|;:'\",<>/?");
12611260
/* All nonalphanums except '.' */
1261+
rl_completer_word_break_characters = completer_word_break_characters;
12621262

12631263
mod_state->begidx = PyLong_FromLong(0L);
12641264
mod_state->endidx = PyLong_FromLong(0L);

0 commit comments

Comments
 (0)