disabling warn_unused_result attribute with FORTIFY_SOURCE?
Kevin Kofler
kevin.kofler at chello.at
Thu Mar 15 04:16:51 UTC 2007
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
More information about the fedora-devel-list
mailing list