2006.03.16 14:31 "[Tiff] New libtiff release", by Andrey Kiselev

2006.03.16 18:55 "[Tiff] REPORT: Warning Messages in compile (Re: New libtiff release)", by Norihiko Murase

Hi,

I tried building the CVS snapshot obtained on Mar 17 02:08 (JST). Some warning messages were printed when the following files were compiled:

  1. libtiff/tif_dirinfo.c
  2. libtiff/tif_jpeg.c
  3. libtiff/tif_ojpeg.c
  4. tools/fax2tiff.c
  5. tools/tiff2pdf.c
  6. contrib/addtiffo/tif_overview.c

No compile error was occurred.

The information of the operating system on which I built is:

    % uname -a

    FreeBSD ***** 4.11-RELEASE FreeBSD 4.11-RELEASE #0: Tue May  3 02:00:46 JST 2005     root@*****:/usr/src/sys/compile/*****  i386

    %
    % which gcc
    /usr/bin/gcc
    % gcc --version
    2.95.4
    %

The options specified in executing the configure script is:

    --prefix=/usr/local/LibTIFF
    --enable-rpath
    --enable-zlib
    --enable-jpeg --enable-old-jpeg
    --enable-cxx
    --with-docdir='$(prefix)/doc'
    --with-zlib-include-dir=/usr/local/zlib/include
    --with-zlib-lib-dir=/usr/local/zlib/lib
    --with-jpeg-include-dir=/usr/local/jpeg/include
    --with-jpeg-lib-dir=/usr/local/jpeg/lib

  1. libtiff/tif_dirinfo.c ---------- tif_dirinfo.c: In function `TIFFFindFieldInfoByName': tif_dirinfo.c:754: warning: implicit declaration of function `lfind'
  2. libtiff/tif_jpeg.c ---------- In file included from /usr/local/jpeg/include/jpeglib.h:24, from tif_jpeg.c:87: /usr/local/jpeg/include/jconfig.h:12: warning: `HAVE_STDLIB_H' redefined tif_config.h:99: warning: this is the location of the previous definition tif_jpeg.c: In function `JPEGVSetField': tif_jpeg.c:1576: warning: empty body in an if-statement
  3. libtiff/tif_ojpeg.c

----------
In file included from /usr/local/jpeg/include/jpeglib.h:24,
                 from tif_ojpeg.c:139:

/usr/local/jpeg/include/jconfig.h:12: warning: `HAVE_STDLIB_H' redefined tif_config.h:99: warning: this is the location of the previous definition

tif_ojpeg.c: In function `std_term_source':
tif_ojpeg.c:535: warning: unused parameter `cinfo'
tif_ojpeg.c: In function `alloc_downsampled_buffers':
tif_ojpeg.c:560: warning: variable `ci' might be clobbered by `longjmp' or `vfork'
tif_ojpeg.c:561: warning: variable `compptr' might be clobbered by `longjmp' or 'vfork'
tif_ojpeg.c: In function `OJPEGDecode':
tif_ojpeg.c:996: warning: unused parameter `s'
tif_ojpeg.c:997: warning: variable `bytesperline' might be clobbered by `longjmp' or `vfork'
tif_ojpeg.c:996: warning: argument `cc' might be clobbered by `longjmp' or `vfork'
tif_ojpeg.c: In function `OJPEGDecodeRawContig':
tif_ojpeg.c:1072: warning: comparison between signed and unsigned
tif_ojpeg.c:1046: warning: unused parameter `s'
tif_ojpeg.c:1046: warning: argument `buf' might be clobbered by `longjmp' or `vfork'
tif_ojpeg.c:1046: warning: argument `cc' might be clobbered by `longjmp' or `vfork'
tif_ojpeg.c: In function `OJPEGDecodeRawSeparate':
tif_ojpeg.c:1164: warning: comparison between signed and unsigned
tif_ojpeg.c:1140: warning: argument `buf' might be clobbered by `longjmp' or `vfork'
tif_ojpeg.c:1140: warning: argument `cc' might be clobbered by `longjmp' or `vfork'
tif_ojpeg.c: In function `fake_SOS_marker':
tif_ojpeg.c:1192: warning: unused parameter `cinfo'
tif_ojpeg.c: In function `suspend':
tif_ojpeg.c:1195: warning: unused parameter `cinfo'
tif_ojpeg.c: In function `OJPEGSetupDecode':
tif_ojpeg.c:1701: warning: enumeration value `JCS_YCCK' not handled in switch
tif_ojpeg.c:1287: warning: `jpeg_color_space' might be used uninitialized in this function
tif_ojpeg.c:1287: warning: variable `jpeg_color_space' might be clobbered by `longjmp' or `vfork'
tif_ojpeg.c:1288: warning: `out_color_space' might be used uninitialized in this function
tif_ojpeg.c:1288: warning: variable `out_color_space' might be clobbered by `longjmp' or `vfork'
tif_ojpeg.c:1289: warning: variable `segment_width' might be clobbered by `longjmp' or `vfork'
tif_ojpeg.c:1291: warning: variable `downsampled_output' might be clobbered by `longjmp' or `vfork'
tif_ojpeg.c: In function `OJPEGPostDecode':
tif_ojpeg.c:1846: warning: unused parameter `buf'
tif_ojpeg.c:1846: warning: unused parameter `cc'
tif_ojpeg.c: In function `OJPEGVSetField':
tif_ojpeg.c:2100: warning: comparison between signed and unsigned
tif_ojpeg.c:2126: warning: comparison between signed and unsigned
tif_ojpeg.c:2151: warning: comparison between signed and unsigned
tif_ojpeg.c:2181: warning: comparison between signed and unsigned
tif_ojpeg.c:2205: warning: comparison between signed and unsigned
tif_ojpeg.c:2243: warning: comparison between signed and unsigned
tif_ojpeg.c:2249: warning: comparison between signed and unsigned
tif_ojpeg.c:2252: warning: comparison between signed and unsigned
tif_ojpeg.c:1869: warning: variable `v32' might be clobbered by `longjmp' or `vfork'
tif_ojpeg.c:1998: warning: variable `h' might be clobbered by `longjmp' or `vfork'
tif_ojpeg.c:2113: warning: variable `v' might be clobbered by `longjmp' or `vfork'
tif_ojpeg.c:2114: warning: variable `i' might be clobbered by `longjmp' or `vfork'
tif_ojpeg.c:2136: warning: variable `from' might be clobbered by `longjmp' or `vfork'
tif_ojpeg.c:2138: warning: variable `j' might be clobbered by `longjmp' or `vfork'
tif_ojpeg.c:2167: warning: variable `v' might be clobbered by `longjmp' or `vfork'
tif_ojpeg.c:2168: warning: variable `i' might be clobbered by `longjmp' or `vfork'
tif_ojpeg.c:2221: warning: variable `size' might be clobbered by `longjmp' or `vfork'
tif_ojpeg.c:2222: warning: variable `from' might be clobbered by `longjmp' or `vfork'
tif_ojpeg.c:2223: warning: variable `j' might be clobbered by `longjmp' or `vfork'
tif_ojpeg.c:1867: warning: argument `tag' might be clobbered by `longjmp' or `vfork'
tif_ojpeg.c: In function `OJPEGPrintDir':
tif_ojpeg.c:2389: warning: long unsigned int format, uint32 arg (arg 3)
tif_ojpeg.c: In function `TIFFInitOJPEG':
tif_ojpeg.c:2475: warning: unused parameter `scheme'

(4) tools/fax2tiff.c
----------
fax2tiff.c: In function `main':

fax2tiff.c:267: warning: cast to pointer from integer of different size

(5) tools/tiff2pdf.c
----------
tiff2pdf.c: In function `t2p_read_tiff_size':

tiff2pdf.c:1802: warning: comparison between signed and unsigned tiff2pdf.c: In function `t2p_process_ojpeg_tables':

tiff2pdf.c:3052: warning: comparison between signed and unsigned tiff2pdf.c:3231: warning: comparison between signed and unsigned

tiff2pdf.c:3233: warning: comparison between signed and unsigned

(6) contrib/addtiffo/tif_overview.c
----------
tif_overview.c: In function `TIFF_WriteOverview':
tif_overview.c:88: warning: unused parameter `bUseSubIFDs'
tif_overview.c: In function `TIFF_DownSample_Subsampled':
tif_overview.c:364: warning: unused parameter `nOBlockYSize'
tif_overview.c: In function `TIFFBuildOverviews':
tif_overview.c:694: warning: unused parameter `pfnProgress'
tif_overview.c:695: warning: unused parameter `pProgressData'

Sincerely,

---
Norihiko Murase
  The University of Aizu
E-mail: skeleten [AT] shillest.net
        s1080224 [AT] u-aizu.ac.jp