-Werror=unused-value does not give error when ignoring return value of function with attribute warn_unused_result
Erik
esigra@gmail.com
Wed Jul 1 22:35:00 GMT 2009
I need to get an error when the return value of a function with
attribute warn_unused_result is ignored. I added
-Werror=unused-function, -Werror=unused-label and -Werror=unused-value
but nothing seems to work.
More information about the Gcc-help
mailing list