[Python-Dev] warn_unused_result warnings

Arfrever Frehtes Taifersar Arahesis arfrever.fta at gmail.com
Fri Apr 1 23:13:04 CEST 2011


2011-04-01 03:23:10 Victor Stinner napisał(a):
> Le 01/04/2011 01:11, Benjamin Peterson a écrit :
> > 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.
> Can't we try to fix the warnings instead of turning them off? Or is it 
> possible to only turn off these warnings on a specific function?

http://gcc.gnu.org/gcc-4.6/changes.html
"Support for selectively enabling and disabling warnings via #pragma GCC diagnostic has been added."

-- 
Arfrever Frehtes Taifersar Arahesis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.python.org/pipermail/python-dev/attachments/20110401/bf054424/attachment.pgp>


More information about the Python-Dev mailing list