[issue19296] Compiler warning when compiling dbm module
Nick Coghlan
report at bugs.python.org
Sun Nov 17 06:45:09 CET 2013
Nick Coghlan added the comment:
I get the same warning on Fedora 19.
However, the signature of dbmopen_impl is generated by argument clinic, so it isn't simply a matter of patching the signature in place. I'm also inclined to consider the *platform* header to be wrong, since the dbm_open API really should be accepting "const char *" rather than "char *".
We should find a way to silence the warning to avoid the false alarm in the build output (a cast to "char *" with a reference to this issue would be the brute force approach), but propagating the incorrect type declaration higher up the call stack is unlikely to be the right approach.
----------
nosy: +larry, ncoghlan
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19296>
_______________________________________
More information about the Python-bugs-list
mailing list