[New-bugs-announce] [issue20525] Got compiler warning when compiling readline module

Vajrasky Kok report at bugs.python.org
Thu Feb 6 08:58:12 CET 2014

New submission from Vajrasky Kok:

On Fedora 20, I got this compiler warning:

/home/sky/Code/python/cpython3.4/Modules/readline.c: In function ‘flex_complete’:
/home/sky/Code/python/cpython3.4/Modules/readline.c:962:5: warning: passing argument 1 of ‘completion_matches’ discards ‘const’ qualifier from pointer target type [enabled by default]
     result = completion_matches(text, *on_completion);
/home/sky/Code/python/cpython3.4/Modules/readline.c:40:15: note: expected ‘char *’ but argument is of type ‘const char *’
 extern char **completion_matches(char *, rl_compentry_func_t *);

Here is the patch using Christian Heimes' strategy in silencing compiler warning in dbm module.

components: Extension Modules
files: fix_compile_warning_readline.patch
keywords: patch
messages: 210364
nosy: vajrasky
priority: normal
severity: normal
status: open
title: Got compiler warning when compiling readline module
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file33938/fix_compile_warning_readline.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list