------- Additional Comments From pbijdens at storagelabs dot com 2005-03-11 17:02 ------- Invalid or not, the request for changing the error message in the other case still stands for reasons mentioned: It's impossible currently to distinguish between the two mentioned cases.
Compiler warnings should help the developer improve their code, not make life mor difficult and even force developers to create unsafe situations. The value of these warning messages would greatly improve when a distinction would be made between the two cases mentioned. This is especially true because this is a commonly used construct in environments where coding guidelines are in place that require function return values to be status codes only. -- What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|INVALID | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20422