AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2012.07.06 19:28 "[Tiff] Challenge to properly eliminate warning", by Bob Friesenhahn
2012.07.06 20:07 "Re: [Tiff] Challenge to properly eliminate warning", by Olivier Paquet
2012.07.06 20:22 "Re: [Tiff] Challenge to properly eliminate warning", by Bob Friesenhahn
2012.07.07 08:38 "Re: [Tiff] Challenge to properly eliminate warning", by Even Rouault
2012.07.07 14:13 "Re: [Tiff] Challenge to properly eliminate warning", by Bob Friesenhahn
2012.07.08 16:06 "Re: [Tiff] Challenge to properly eliminate warning", by Edward Lam
2012.07.08 16:47 "Re: [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/