* warning: passing `char' to argument 2 of `strcpy(char *, const char *)' lacks a cast
@ 1997-10-10 22:58 Olivier Galibert
0 siblings, 0 replies; only message in thread
From: Olivier Galibert @ 1997-10-10 22:58 UTC (permalink / raw)
To: egcs
Shouldn't these warnings being errors instead ? I see no case where
it can be something else than a typo and in a big compilation a
meaningful warning can go unnoticed within meaningless ones.
renaissance.loria.fr:~/dvp/gally/magna #437 >cat >blah.cc
#include <string.h>
int main()
{
char tab[5];
strcpy(tab, 'a');
return 0;
}
renaissance.loria.fr:~/dvp/gally/magna #438 >g++ blah.cc -o blah
blah.cc: In function `int main()':
blah.cc:6: warning: passing `char' to argument 2 of `strcpy(char *, const char *)' lacks a cast
renaissance.loria.fr:~/dvp/gally/magna #439 >gcc blah.cc -o blah
blah.cc: In function `int main()':
blah.cc:6: warning: passing `char' to argument 2 of `strcpy(char *, const char *)' lacks a cast
renaissance.loria.fr:~/dvp/gally/magna #440 >gcc -v
Reading specs from /users/model/galibert/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.90.12/specs
gcc version egcs-2.90.12 971008 (gcc2-970802 experimental)
OG.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-10-10 22:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-10-10 22:58 warning: passing `char' to argument 2 of `strcpy(char *, const char *)' lacks a cast Olivier Galibert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).