This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Warning in resolve.c


/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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]