Missing warning message

Andrew Vaught andy@xena.eas.asu.edu
Sat Feb 10 12:19:00 GMT 2001


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



More information about the Gcc mailing list