[Bug c/25509] can't disable __attribute__((warn_unused_result))

fche at redhat dot com gcc-bugzilla@gcc.gnu.org
Sat Nov 22 18:36:00 GMT 2008



------- Comment #22 from fche at redhat dot com  2008-11-22 18:35 -------
(In reply to comment #21)
> Sent from my iPhone

Good to know.

> > GCC should not be trying to micromanage coding styles - either of  
> > the rest of gnu software or anywhere else, but at least until you
> > clean up every bit of your own code, there should be a way of disabling
> > the warning clutter.
> 
> Why GCC is not micromanaging at all, it just allows the developer of  
> the API to have the warning.  So your complaints here are useless.

What the poster seems to be requesting is another -Wno-unused-FOO flag
to override this warning.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509



More information about the Gcc-bugs mailing list