[Python-Dev] warn_unused_result warnings

Antoine Pitrou solipsis at pitrou.net
Fri Apr 1 02:28:42 CEST 2011


On Thu, 31 Mar 2011 18:11:46 -0500
Benjamin Peterson <benjamin at python.org> wrote:
> I'm rather sick of seeing this warnings on all compiles, so I propose
> we enable the -Wno-unused-results option. I judge that most of the
> cases where this occurs are error reporting functions, where not much
> with return code can be done.

If you manage to hack this gcc-specific option into the build chain
without breaking other compilers, why not :)

Regards

Antoine.




More information about the Python-Dev mailing list