Warning in resolve.c
FX Coudert
fxcoudert@gmail.com
Mon Jan 29 10:39:00 GMT 2007
> /home/ig25/gcc-bin/trunk/./prev-gcc/xgcc -B/home/ig25/gcc-bin/
> trunk/./prev-gcc/ -B/home/ig25/i686-pc-linux-gnu/bin/ -c -O2 -g -
> fomit-frame-pointer -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-
> prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-
> variadic-macros -Wno-overlength-strings -Wold-style-definition -
> Wmissing-format-attribute -Werror -fno-common -Wno-error -
> DHAVE_CONFIG_H -I. -Ifortran -I../../../gcc/trunk/gcc -I../../../
> gcc/trunk/gcc/fortran -I../../../gcc/trunk/gcc/../include -
> I../../../gcc/trunk/gcc/../libcpp/include -I../../../gcc/trunk/
> gcc/../libdecnumber -I../libdecnumber ../../../gcc/trunk/gcc/
> fortran/resolve.c -o fortran/resolve.o
> ../../../gcc/trunk/gcc/fortran/resolve.c: In function
> 'gfc_resolve_expr':
> ../../../gcc/trunk/gcc/fortran/resolve.c:1527: warning: 'name' may
> be used uninitialized in this function
> ../../../gcc/trunk/gcc/fortran/resolve.c:1527: note: 'name' was
> declared here
>
> From looking at the code, This is probably harmless. However,
> it's still a good idea to shut this up :-)
See http://gcc.gnu.org/ml/gcc-patches/2007-01/msg01718.html and
http://gcc.gnu.org/ml/gcc-patches/2007-01/msg01725.html
Feel free to apply the patch (initialize the name variable to NULL)
to mainline.
FX
More information about the Fortran
mailing list