[issue10951] gcc 4.6 warnings

Martin Pool report at bugs.python.org
Mon Aug 22 05:57:39 CEST 2011


Martin Pool <mbp at sourcefrog.net> added the comment:

This fixes every compiler warning so that Python build with -Werror on Ubuntu Oneiric alpha (gcc 4.6.1-7ubuntu1).  

 * PyMem_Resize is a macro that mutates its first argument; the return value shouldn't be used.
 * Some variables in sre are (apparently harmlessly) not used when validating the opcodes.
 * gethostbyname_r return codes weren't used and should be; it is not guaranteed to set h_errno correctly (though it does seem to do so here)
 * a few vairables in pthread and tkappintr are not used in some preprocessor productions.
 * setup.py should detect linux kernel 3.0 as linux, and therefore able to build ossaudiodev

I don't get all the errors mentioned by haypo.  At least some seem already fixed.

----------
Added file: http://bugs.python.org/file22985/20110822-1352-gcc-warnings.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10951>
_______________________________________


More information about the Python-bugs-list mailing list