Re: disabling warn_unused_result attribute with FORTIFY_SOURCE?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ulrich Drepper <drepper <at> redhat.com> writes:
> Kevin Kofler wrote:
> > The _easy_ way to get rid of the warnings is to cast the unused results to 
> > void.
> 
> No, gcc won't fall for that.

I wouldn't call it "fall for that", but "be consistent with all the other 
warnings about ignored values, both GCC's own 'value computed and not used' and 
those emitted by other compilers for situations exactly like the 
warn_unused_result one".

        Kevin Kofler

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux