This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]