Re: disabling warn_unused_result attribute with FORTIFY_SOURCE?

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

 



Matthew Miller <mattdm <at> mattdm.org> writes:
> Unlike other warnings, though, there doesn't seem to be a way to turn it
> off. Is there one I'm missing?

The _easy_ way to get rid of the warnings is to cast the unused results to 
void. The _right_ way to get rid of them is to actually _do_ something with the 
results, except in cases where it _really_ doesn't matter (e.g. because you 
already errored and are just trying to clean up or output/log error messages 
before the exit(1)).

        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