no warning message with -Wall
Michael Williamson
michael_h_williamson@yahoo.com
Tue Aug 21 16:48:00 GMT 2007
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
More information about the Gcc-bugs
mailing list