2012.07.06 19:28 "[Tiff] Challenge to properly eliminate warning", by Bob Friesenhahn

2012.07.06 19:28 "[Tiff] Challenge to properly eliminate warning", by Bob Friesenhahn

With libtiff CVS, GCC 4.7.0 produces this remaining warning when

compiling the library:

../libtiff/tif_dirread.c: In function 'TIFFFetchNormalTag':

../libtiff/tif_dirread.c:4770:23: warning: 'data' may be used uninitialized in this function [-Wmaybe-uninitialized]

It would be easy to quench this warning the easy way but I think that

it would mask an error in the error handling logic. I have not yet
found the origin of the error. It is useful to find the origin of the
problem so that a proper error may be returned rather than using
canned wrong data.

These are the compilation flags I am using with GCC 4.7.0

-g -g3 -ggdb -O2 -Wall -Winline -W -Wformat-security -Wpointer-arith -Wdisabled-optimization -Wno-unknown-pragmas

Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/