I'd like a warning option to warn when non-void function return values are unused. gcc now has an attribute to require this for particular functions. Why not a global switch? Obviously this will give a lot of warnings on existing code, but I think it may be useful in some cases. There is already a pattern (from lint?) of casting to void values that are unused. Making this explicit may be useful in avoiding missed error returns, etc.
Will not happen, read the documention and also the patch which added the attribute.
OK. In case anyone else looks for this, it's mentioned in the "non-bugs" section: http://gcc.gnu.org/onlinedocs/gcc/Non_002dbugs.html It doesn't seem to be mentioned in the warn_unused_result patch or the thread about it.