mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
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 29b391b137)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
This commit is contained in:
parent
f786485f13
commit
5074c35c2a
1 changed files with 1 additions and 1 deletions
|
|
@ -1256,9 +1256,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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue