Skip to content

Commit

Permalink
Fix readline.c compiler warning. (GH-98738)
Browse files Browse the repository at this point in the history
```
Modules/readline.c:1260:37: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    completer_word_break_characters =
                                    ^
```
  • Loading branch information
benjaminp committed Oct 26, 2022
1 parent a508631 commit 29b391b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/readline.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 29b391b

Please sign in to comment.