This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Missing warning message
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Missing warning message
- From: Andrew Vaught <andy at xena dot eas dot asu dot edu>
- Date: Sat, 10 Feb 2001 13:21:18 -0700 (MST)
While working on g95, we had an erroneous declaration that looked like:
char array[] = { "a", "b", "c" };
Compiling with '-Wall -pedantic' gave no warnings of any sort. Gcc missed
the fact that the array elements are characters while the initialization
elements are pointers to character. gcc -v gives:
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
Andy
----------------- XOLD(K,IC,I)=
Andy Vaught .... DO ITERS=1, 10 XOLD(K,IC,I)
andy@xena.eas.asu.edu | | /CALLMSOLVE(A,B,X,I,ITERS,TOL)+(RANNYU(0)
Arizona State University ======|WRITE(6,'(I5,2X,F12.6)')ITERS,TOL -HALF)
Tempe, Arizona USA OOOOOO \ENDDORETURN PARAMETER(ZERO=1.D0)*TENTH*DELTA