[Bug c/20422] warning: passing arg 1 of `mymalloc' from incompatible pointer type

pbijdens at storagelabs dot com gcc-bugzilla@gcc.gnu.org
Fri Mar 11 17:02:00 GMT 2005


------- 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



More information about the Gcc-bugs mailing list