This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
no warning message with -Wall
- From: Michael Williamson <michael_h_williamson at yahoo dot com>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 21 Aug 2007 09:47:56 -0700 (PDT)
- Subject: no warning message with -Wall
I mistakenly used
memcpy (s, '\0', 5);
instead of
memset (s, '\0', 5);
but the gcc compiler gave no warnings (using -Wall).
I would expect a message like:
"the second parameter is not a pointer".
-Mike
____________________________________________________________________________________
Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7