JDK-6989774 : imageio compiler warnings in native code
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.imageio
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2010-10-05
  • Updated: 2011-05-18
  • Resolved: 2011-05-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
JDK 7
7 b132Fixed
Description
Windows:

C:/PROGRA~1/MICROS~2.0/Common7/Tools/../../Vc/Bin/cl  -Od    -Zi -nologo -MD /D _STATIC_CPPLIB -Zc:wchar_t- -FdC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/sun/sun.awt/jpeg/obj_gO/imageioJPEG.pdb -FmC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/sun/sun.awt/jpeg/obj_gO/imageioJPEG.map -wd4800 -W3 -D _CRT_SECURE_NO_DEPRECATE  -DDEBUG -DLOGGING -DWIN32 -DIAL -D_LITTLE_ENDIAN -D_X86_ -Dx86  -DWIN32_LEAN_AND_MEAN -I. -IC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/sun/sun.awt/jpeg/CClassHeaders -I../../../src/windows/javavm/export -I../../../src/share/javavm/export -I../../../src/closed/share/native/sun/awt/image/jpeg -I../../../src/share/native/sun/awt/image/jpeg -I../../../src/share/native/common -I../../../src/windows/native/common -I../../../src/share/native/sun/awt -I../../../src/windows/native/sun/awt    -c -FoC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/sun/sun.awt/jpeg/obj_gO/imageioJPEG.obj  ../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c
imageioJPEG.c
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c(392) : warning C4101: 'i' : unreferenced local variable
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c(392) : warning C4101: 'j' : unreferenced local variable
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c(1866) : warning C4018: '>' : signed/unsigned mismatch
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c(1869) : warning C4018: '>' : signed/unsigned mismatch
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c(1828) : warning C4101: 'halfMaxBandValue' : unreferenced local variable
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c(1828) : warning C4101: 'maxBandValue' : unreferenced local variable
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c(1827) : warning C4101: 'bandSize' : unreferenced local variable
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c(1817) : warning C4101: 'j' : unreferenced local variable


C:/PROGRA~1/MICROS~2.0/Common7/Tools/../../Vc/Bin/cl  -Od    -Zi -nologo -MD /D _STATIC_CPPLIB -Zc:wchar_t- -FdC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/sun/sun.awt/jpeg/obj_gO/jpegdecoder.pdb -FmC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/sun/sun.awt/jpeg/obj_gO/jpegdecoder.map -wd4800 -W3 -D _CRT_SECURE_NO_DEPRECATE  -DDEBUG -DLOGGING -DWIN32 -DIAL -D_LITTLE_ENDIAN -D_X86_ -Dx86  -DWIN32_LEAN_AND_MEAN -I. -IC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/sun/sun.awt/jpeg/CClassHeaders -I../../../src/windows/javavm/export -I../../../src/share/javavm/export -I../../../src/closed/share/native/sun/awt/image/jpeg -I../../../src/share/native/sun/awt/image/jpeg -I../../../src/share/native/common -I../../../src/windows/native/common -I../../../src/share/native/sun/awt -I../../../src/windows/native/sun/awt    -c -FoC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/sun/sun.awt/jpeg/obj_gO/jpegdecoder.obj  ../../../src/share/native/sun/awt/image/jpeg/jpegdecoder.c
jpegdecoder.c
../../../src/share/native/sun/awt/image/jpeg/jpegdecoder.c(331) : warning C4018: '<=' : signed/unsigned mismatch

C:/PROGRA~1/MICROS~2.0/Common7/Tools/../../Vc/Bin/cl  -Od    -Zi -nologo -MD /D _STATIC_CPPLIB -Zc:wchar_t- -FdC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/sun/sun.awt/jpeg/obj_gO/jpegimageencoderimpl.pdb -FmC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/sun/sun.awt/jpeg/obj_gO/jpegimageencoderimpl.map -wd4800 -W3 -D _CRT_SECURE_NO_DEPRECATE  -DDEBUG -DLOGGING -DWIN32 -DIAL -D_LITTLE_ENDIAN -D_X86_ -Dx86  -DWIN32_LEAN_AND_MEAN -I. -IC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/sun/sun.awt/jpeg/CClassHeaders -I../../../src/windows/javavm/export -I../../../src/share/javavm/export -I../../../src/closed/share/native/sun/awt/image/jpeg -I../../../src/share/native/sun/awt/image/jpeg -I../../../src/share/native/common -I../../../src/windows/native/common -I../../../src/share/native/sun/awt -I../../../src/windows/native/sun/awt    -c -FoC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/sun/sun.awt/jpeg/obj_gO/jpegimageencoderimpl.obj  ../../../src/closed/share/native/sun/awt/image/jpeg/jpegimageencoderimpl.c
jpegimageencoderimpl.c
../../../src/closed/share/native/sun/awt/image/jpeg/jpegimageencoderimpl.c(393) : warning C4101: 'intPtr' : unreferenced local variable
../../../src/closed/share/native/sun/awt/image/jpeg/jpegimageencoderimpl.c(391) : warning C4101: 'buffer' : unreferenced local variable

C:/PROGRA~1/MICROS~2.0/Common7/Tools/../../Vc/Bin/cl  -Od    -Zi -nologo -MD /D _STATIC_CPPLIB -Zc:wchar_t- -FdC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/sun/sun.awt/jpeg/obj_gO/jpegparam.pdb -FmC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/sun/sun.awt/jpeg/obj_gO/jpegparam.map -wd4800 -W3 -D _CRT_SECURE_NO_DEPRECATE  -DDEBUG -DLOGGING -DWIN32 -DIAL -D_LITTLE_ENDIAN -D_X86_ -Dx86  -DWIN32_LEAN_AND_MEAN -I. -IC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/sun/sun.awt/jpeg/CClassHeaders -I../../../src/windows/javavm/export -I../../../src/share/javavm/export -I../../../src/closed/share/native/sun/awt/image/jpeg -I../../../src/share/native/sun/awt/image/jpeg -I../../../src/share/native/common -I../../../src/windows/native/common -I../../../src/share/native/sun/awt -I../../../src/windows/native/sun/awt    -c -FoC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/sun/sun.awt/jpeg/obj_gO/jpegparam.obj  ../../../src/closed/share/native/sun/awt/image/jpeg/jpegparam.c
jpegparam.c
../../../src/closed/share/native/sun/awt/image/jpeg/jpegparam.c(684) : warning C4101: 'newJPPObj' : unreferenced local variable
../../../src/closed/share/native/sun/awt/image/jpeg/jpegparam.c(704) : warning C4101: 'flag' : unreferenced local variable
../../../src/closed/share/native/sun/awt/image/jpeg/jpegparam.c(721) : warning C4101: 'dctMethod' : unreferenced local variable
Compiler warnings in imageio native code:

Linux:

/usr/bin/gcc  -g -O2   -fno-strict-aliasing -fPIC -W -Wall  -Wno-unused -Wno-parentheses -fno-omit-frame-pointer -D_LITTLE_ENDIAN  -DDEBUG -DLOGGING  -DARCH='"i586"' -Di586 -DLINUX -DRELEASE='"1.7.0-ea-fastdebug"' -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D_REENTRANT -I. -I/BUILD_AREA/jdk7/build/linux-i586/../linux-i586-fastdebug/tmp/sun/sun.awt/jpeg/CClassHeaders -I../../../src/solaris/javavm/export -I../../../src/share/javavm/export -I../../../src/closed/share/native/sun/awt/image/jpeg -I../../../src/share/native/sun/awt/image/jpeg -I../../../src/share/native/common -I../../../src/solaris/native/common -I../../../src/share/native/sun/awt -I../../../src/solaris/native/sun/awt    -c -o /BUILD_AREA/jdk7/build/linux-i586/../linux-i586-fastdebug/tmp/sun/sun.awt/jpeg/obj_gO/jpegdecoder.o  ../../../src/share/native/sun/awt/image/jpeg/jpegdecoder.c
../../../src/share/native/sun/awt/image/jpeg/jpegdecoder.c: In function 'sun_jpeg_fill_suspended_buffer':
../../../src/share/native/sun/awt/image/jpeg/jpegdecoder.c:331: warning: comparison between signed and unsigned
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c: In function 'Java_com_sun_imageio_plugins_jpeg_JPEGImageReader_initJPEGImageReader':
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c:1523: warning: cast from pointer to integer of different size
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c: In function 'Java_com_sun_imageio_plugins_jpeg_JPEGImageReader_setSource':
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c:1538: warning: cast to pointer from integer of different size
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c: In function 'Java_com_sun_imageio_plugins_jpeg_JPEGImageReader_readImageHeader':
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c:1577: warning: cast to pointer from integer of different size
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c: In function 'Java_com_sun_imageio_plugins_jpeg_JPEGImageReader_setOutColorSpace':
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c:1775: warning: cast to pointer from integer of different size
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c: In function 'Java_com_sun_imageio_plugins_jpeg_JPEGImageReader_readImage':
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c:1832: warning: cast to pointer from integer of different size
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c:1866: warning: comparison between signed and unsigned
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c:1869: warning: comparison between signed and unsigned
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c: In function 'Java_com_sun_imageio_plugins_jpeg_JPEGImageReader_abortRead':
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c:2122: warning: cast to pointer from integer of different size
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c: In function 'Java_com_sun_imageio_plugins_jpeg_JPEGImageReader_resetLibraryState':
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c:2140: warning: cast to pointer from integer of different size
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c: In function 'Java_com_sun_imageio_plugins_jpeg_JPEGImageReader_resetReader':
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c:2162: warning: cast to pointer from integer of different size
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c: In function 'Java_com_sun_imageio_plugins_jpeg_JPEGImageReader_disposeReader':
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c:2235: warning: cast to pointer from integer of different size
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c: In function 'Java_com_sun_imageio_plugins_jpeg_JPEGImageWriter_initJPEGImageWriter':
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c:2488: warning: cast from pointer to integer of different size
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c: In function 'Java_com_sun_imageio_plugins_jpeg_JPEGImageWriter_setDest':
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c:2498: warning: cast to pointer from integer of different size
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c: In function 'Java_com_sun_imageio_plugins_jpeg_JPEGImageWriter_writeTables':
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c:2529: warning: cast to pointer from integer of different size
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c: In function 'Java_com_sun_imageio_plugins_jpeg_JPEGImageWriter_writeImage':
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c:2627: warning: cast to pointer from integer of different size
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c: In function 'Java_com_sun_imageio_plugins_jpeg_JPEGImageWriter_abortWrite':
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c:2946: warning: cast to pointer from integer of different size
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c: In function 'Java_com_sun_imageio_plugins_jpeg_JPEGImageWriter_resetWriter':
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c:2963: warning: cast to pointer from integer of different size
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c: In function 'Java_com_sun_imageio_plugins_jpeg_JPEGImageWriter_disposeWriter':
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c:2995: warning: cast to pointer from integer of different size
/usr/bin/gcc  -g -O2   -fno-strict-aliasing -fPIC -W -Wall  -Wno-unused -Wno-parentheses -fno-omit-frame-pointer -D_LITTLE_ENDIAN  -DDEBUG -DLOGGING  -DARCH='"i586"' -Di586 -DLINUX -DRELEASE='"1.7.0-ea-fastdebug"' -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D_REENTRANT -I. -I/BUILD_AREA/jdk7/build/linux-i586/../linux-i586-fastdebug/tmp/sun/sun.awt/jpeg/CClassHeaders -I../../../src/solaris/javavm/export -I../../../src/share/javavm/export -I../../../src/closed/share/native/sun/awt/image/jpeg -I../../../src/share/native/sun/awt/image/jpeg -I../../../src/share/native/common -I../../../src/solaris/native/common -I../../../src/share/native/sun/awt -I../../../src/solaris/native/sun/awt    -c -o /BUILD_AREA/jdk7/build/linux-i586/../linux-i586-fastdebug/tmp/sun/sun.awt/jpeg/obj_gO/jcomapi.o  ../../../src/share/native/sun/awt/image/jpeg/jcomapi.c
/usr/bin/gcc  -g -O2   -fno-strict-aliasing -fPIC -W -Wall  -Wno-unused -Wno-parentheses -fno-omit-frame-pointer -D_LITTLE_ENDIAN  -DDEBUG -DLOGGING  -DARCH='"i586"' -Di586 -DLINUX -DRELEASE='"1.7.0-ea-fastdebug"' -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D_REENTRANT -I. -I/BUILD_AREA/jdk7/build/linux-i586/../linux-i586-fastdebug/tmp/sun/sun.awt/jpeg/CClassHeaders -I../../../src/solaris/javavm/export -I../../../src/share/javavm/export -I../../../src/closed/share/native/sun/awt/image/jpeg -I../../../src/share/native/sun/awt/image/jpeg -I../../../src/share/native/common -I../../../src/solaris/native/common -I../../../src/share/native/sun/awt -I../../../src/solaris/native/sun/awt    -c -o /BUILD_AREA/jdk7/build/linux-i586/../linux-i586-fastdebug/tmp/sun/sun.awt/jpeg/obj_gO/jdapimin.o  ../../../src/closed/share/native/sun/awt/image/jpeg/jdapimin.c
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c: In function 'Java_com_sun_imageio_plugins_jpeg_JPEGImageWriter_writeImage':
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c:2629: warning: variable 'scale' might be clobbered by 'longjmp' or 'vfork'
/usr/bin/gcc  -g -O2   -fno-strict-aliasing -fPIC -W -Wall  -Wno-unused -Wno-parentheses -fno-omit-frame-pointer -D_LITTLE_ENDIAN  -DDEBUG -DLOGGING  -DARCH='"i586"' -Di586 -DLINUX -DRELEASE='"1.7.0-ea-fastdebug"' -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D_REENTRANT -I. -I/BUILD_AREA/jdk7/build/linux-i586/../linux-i586-fastdebug/tmp/sun/sun.awt/jpeg/CClassHeaders -I../../../src/solaris/javavm/export -I../../../src/share/javavm/export -I../../../src/closed/share/native/sun/awt/image/jpeg -I../../../src/share/native/sun/awt/image/jpeg -I../../../src/share/native/common -I../../../src/solaris/native/common -I../../../src/share/native/sun/awt -I../../../src/solaris/native/sun/awt    -c -o /BUILD_AREA/jdk7/build/linux-i586/../linux-i586-fastdebug/tmp/sun/sun.awt/jpeg/obj_gO/jdapistd.o  ../../../src/share/native/sun/awt/image/jpeg/jdapistd.c
/usr/bin/gcc  -g -O2   -fno-strict-aliasing -fPIC -W -Wall  -Wno-unused -Wno-parentheses -fno-omit-frame-pointer -D_LITTLE_ENDIAN  -DDEBUG -DLOGGING  -DARCH='"i586"' -Di586 -DLINUX -DRELEASE='"1.7.0-ea-fastdebug"' -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D_REENTRANT -I. -I/BUILD_AREA/jdk7/build/linux-i586/../linux-i586-fastdebug/tmp/sun/sun.awt/jpeg/CClassHeaders -I../../../src/solaris/javavm/export -I../../../src/share/javavm/export -I../../../src/closed/share/native/sun/awt/image/jpeg -I../../../src/share/native/sun/awt/image/jpeg -I../../../src/share/native/common -I../../../src/solaris/native/common -I../../../src/share/native/sun/awt -I../../../src/solaris/native/sun/awt    -c -o /BUILD_AREA/jdk7/build/linux-i586/../linux-i586-fastdebug/tmp/sun/sun.awt/jpeg/obj_gO/jdcoefct.o  ../../../src/share/native/sun/awt/image/jpeg/jdcoefct.c
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c: In function 'Java_com_sun_imageio_plugins_jpeg_JPEGImageReader_readImage':
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c:1831: warning: variable 'orderedBands' might be clobbered by 'longjmp' or 'vfork'
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c:1804: warning: argument 'stepX' might be clobbered by 'longjmp' or 'vfork'
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c:1805: warning: argument 'stepY' might be clobbered by 'longjmp' or 'vfork'
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c:1810: warning: argument 'maxProgressivePass' might be clobbered by 'longjmp' or 'vfork'
Windows x64 (fastdebug and product):

C:/PROGRA~2/MICROS~2.0/VC/Bin/AMD64/cl  -Od    -Zi -nologo -MD /D _STATIC_CPPLIB -Zc:wchar_t- -Fd../../../build/windows-amd64/tmp/sun/sun.awt/jpeg/obj64_gO/imageioJPEG.pdb -Fm../../../build/windows-amd64/tmp/sun/sun.awt/jpeg/obj64_gO/imageioJPEG.map -wd4800 -W3 -D _CRT_SECURE_NO_DEPRECATE  -DDEBUG -DLOGGING -DWIN32 -DIAL -D_LITTLE_ENDIAN -D_AMD64_ -Damd64 -DWIN32_LEAN_AND_MEAN -I. -I../../../build/windows-amd64/tmp/sun/sun.awt/jpeg/CClassHeaders -I../../../src/windows/javavm/export -I../../../src/share/javavm/export -I../../../src/closed/share/native/sun/awt/image/jpeg -I../../../src/share/native/sun/awt/image/jpeg -I../../../src/share/native/common -I../../../src/windows/native/common -I../../../src/share/native/sun/awt -I../../../src/windows/native/sun/awt    -c -Fo../../../build/windows-amd64/tmp/sun/sun.awt/jpeg/obj64_gO/imageioJPEG.obj  ../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c
imageioJPEG.c
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c(238) : warning C4244: '=' : conversion from '__int64' to 'int', possible loss of data
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c(1002) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c(2034) : warning C4244: '=' : conversion from '__int64' to 'unsigned int', possible loss of data
../../../src/share/native/sun/awt/image/jpeg/imageioJPEG.c(2320) : warning C4267: 'initializing' : conversion from 'size_t' to 'jint', possible loss of data
C:/PROGRA~2/MICROS~2.0/VC/Bin/AMD64/cl  -Od    -Zi -nologo -MD /D _STATIC_CPPLIB -Zc:wchar_t- -Fd../../../build/windows-amd64/tmp/sun/sun.awt/jpeg/obj64_gO/jpegdecoder.pdb -Fm../../../build/windows-amd64/tmp/sun/sun.awt/jpeg/obj64_gO/jpegdecoder.map -wd4800 -W3 -D _CRT_SECURE_NO_DEPRECATE  -DDEBUG -DLOGGING -DWIN32 -DIAL -D_LITTLE_ENDIAN -D_AMD64_ -Damd64 -DWIN32_LEAN_AND_MEAN -I. -I../../../build/windows-amd64/tmp/sun/sun.awt/jpeg/CClassHeaders -I../../../src/windows/javavm/export -I../../../src/share/javavm/export -I../../../src/closed/share/native/sun/awt/image/jpeg -I../../../src/share/native/sun/awt/image/jpeg -I../../../src/share/native/common -I../../../src/windows/native/common -I../../../src/share/native/sun/awt -I../../../src/windows/native/sun/awt    -c -Fo../../../build/windows-amd64/tmp/sun/sun.awt/jpeg/obj64_gO/jpegdecoder.obj  ../../../src/share/native/sun/awt/image/jpeg/jpegdecoder.c
jpegdecoder.c
../../../src/share/native/sun/awt/image/jpeg/jpegdecoder.c(400) : warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
C:/PROGRA~2/MICROS~2.0/VC/Bin/AMD64/cl  -Od    -Zi -nologo -MD /D _STATIC_CPPLIB -Zc:wchar_t- -Fd../../../build/windows-amd64/tmp/sun/sun.awt/jpeg/obj64_gO/jmemmgr.pdb -Fm../../../build/windows-amd64/tmp/sun/sun.awt/jpeg/obj64_gO/jmemmgr.map -wd4800 -W3 -D _CRT_SECURE_NO_DEPRECATE  -DDEBUG -DLOGGING -DWIN32 -DIAL -D_LITTLE_ENDIAN -D_AMD64_ -Damd64 -DWIN32_LEAN_AND_MEAN -I. -I../../../build/windows-amd64/tmp/sun/sun.awt/jpeg/CClassHeaders -I../../../src/windows/javavm/export -I../../../src/share/javavm/export -I../../../src/closed/share/native/sun/awt/image/jpeg -I../../../src/share/native/sun/awt/image/jpeg -I../../../src/share/native/common -I../../../src/windows/native/common -I../../../src/share/native/sun/awt -I../../../src/windows/native/sun/awt    -c -Fo../../../build/windows-amd64/tmp/sun/sun.awt/jpeg/obj64_gO/jmemmgr.obj  ../../../src/share/native/sun/awt/image/jpeg/jmemmgr.c
jmemmgr.c
../../../src/share/native/sun/awt/image/jpeg/jmemmgr.c(310) : warning C4267: '+=' : conversion from 'size_t' to 'long', possible loss of data
../../../src/share/native/sun/awt/image/jpeg/jmemmgr.c(370) : warning C4267: '+=' : conversion from 'size_t' to 'long', possible loss of data
../../../src/share/native/sun/awt/image/jpeg/jmemmgr.c(980) : warning C4267: '-=' : conversion from 'size_t' to 'long', possible loss of data
../../../src/share/native/sun/awt/image/jpeg/jmemmgr.c(994) : warning C4267: '-=' : conversion from 'size_t' to 'long', possible loss of data
C:/PROGRA~2/MICROS~2.0/VC/Bin/AMD64/cl  -Od    -Zi -nologo -MD /D _STATIC_CPPLIB -Zc:wchar_t- -Fd../../../build/windows-amd64/tmp/sun/sun.awt/jpeg/obj64_gO/jpegimagedecoderimpl.pdb -Fm../../../build/windows-amd64/tmp/sun/sun.awt/jpeg/obj64_gO/jpegimagedecoderimpl.map -wd4800 -W3 -D _CRT_SECURE_NO_DEPRECATE  -DDEBUG -DLOGGING -DWIN32 -DIAL -D_LITTLE_ENDIAN -D_AMD64_ -Damd64 -DWIN32_LEAN_AND_MEAN -I. -I../../../build/windows-amd64/tmp/sun/sun.awt/jpeg/CClassHeaders -I../../../src/windows/javavm/export -I../../../src/share/javavm/export -I../../../src/closed/share/native/sun/awt/image/jpeg -I../../../src/share/native/sun/awt/image/jpeg -I../../../src/share/native/common -I../../../src/windows/native/common -I../../../src/share/native/sun/awt -I../../../src/windows/native/sun/awt    -c -Fo../../../build/windows-amd64/tmp/sun/sun.awt/jpeg/obj64_gO/jpegimagedecoderimpl.obj  ../../../src/closed/share/native/sun/awt/image/jpeg/jpegimagedecoderimpl.c
jpegimagedecoderimpl.c
../../../src/closed/share/native/sun/awt/image/jpeg/jpegimagedecoderimpl.c(584) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data
C:/PROGRA~2/MICROS~2.0/VC/Bin/AMD64/cl  -Od    -Zi -nologo -MD /D _STATIC_CPPLIB -Zc:wchar_t- -Fd../../../build/windows-amd64/tmp/sun/sun.awt/jpeg/obj64_gO/jpegimageencoderimpl.pdb -Fm../../../build/windows-amd64/tmp/sun/sun.awt/jpeg/obj64_gO/jpegimageencoderimpl.map -wd4800 -W3 -D _CRT_SECURE_NO_DEPRECATE  -DDEBUG -DLOGGING -DWIN32 -DIAL -D_LITTLE_ENDIAN -D_AMD64_ -Damd64 -DWIN32_LEAN_AND_MEAN -I. -I../../../build/windows-amd64/tmp/sun/sun.awt/jpeg/CClassHeaders -I../../../src/windows/javavm/export -I../../../src/share/javavm/export -I../../../src/closed/share/native/sun/awt/image/jpeg -I../../../src/share/native/sun/awt/image/jpeg -I../../../src/share/native/common -I../../../src/windows/native/common -I../../../src/share/native/sun/awt -I../../../src/windows/native/sun/awt    -c -Fo../../../build/windows-amd64/tmp/sun/sun.awt/jpeg/obj64_gO/jpegimageencoderimpl.obj  ../../../src/closed/share/native/sun/awt/image/jpeg/jpegimageencoderimpl.c
jpegimageencoderimpl.c
../../../src/closed/share/native/sun/awt/image/jpeg/jpegimageencoderimpl.c(228) : warning C4267: 'initializing' : conversion from 'size_t' to 'jint', possible loss of data

Solaris sparc, sparcv9, product build: linker warnings:
Rebuilding ../../../build/solaris-sparcv9/lib/sparcv9/libjpeg.so because of ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/.files_compiled mapfile-vers-closed reorder-sparcv9
/opt/jprt/products/P2/ccache2.4/bin/cc  -xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 -fns -fsimple -fsingle -xalias_level=basic -xbuiltin=%all -xdepend -xrestrict -xlibmil -xprefetch=auto,explicit -xchip=ultra -xF   -L../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64 -xc99=%none -xCC -errshort=tags -Xa -xregs=no%appl -v -mt -xstrconst -W0,-noglobal -m64 -xarch=sparc -KPIC  -DNDEBUG -DTRIMMED -D__solaris__  -Dsparc -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS -I. -I../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/CClassHeaders -I../../../src/solaris/javavm/export -I../../../src/share/javavm/export -I../../../src/closed/share/native/sun/awt/image/jpeg -I../../../src/share/native/sun/awt/image/jpeg -I../../../src/share/native/common -I../../../src/solaris/native/common -I../../../src/share/native/sun/awt -I../../../src/solaris/native/sun/awt    -M../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/mapfile-vers -z defs -L../../../build/solaris-sparcv9/lib/sparcv9 -xildoff -R\$ORIGIN  -ztext   -G -o ../../../build/solaris-sparcv9/lib/sparcv9/libjpeg.so    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/imageioJPEG.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jpegdecoder.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jcomapi.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jdapimin.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jdapistd.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jdcoefct.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jdcolor.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jddctmgr.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jdhuff.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jdinput.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jdmainct.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jdmarker.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jdmaster.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jdmerge.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jdphuff.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jdpostct.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jdsample.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jerror.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jidctflt.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jidctfst.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jidctint.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jidctred.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jmemmgr.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jmemnobs.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jquant1.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jquant2.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jutils.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jcapimin.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jcapistd.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jccoefct.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jccolor.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jcdctmgr.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jchuff.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jcinit.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jcmainct.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jcmarker.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jcmaster.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jcparam.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jcphuff.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jcprepct.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jcsample.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jctrans.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jdtrans.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jfdctflt.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jfdctfst.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jfdctint.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jpegimagedecoderimpl.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jpegimageencoderimpl.o    ../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jpegparam.o     -ljava -L../../../build/solaris-sparcv9/lib/sparcv9/server -ljvm -m64 -xarch=sparc -lc
ld: warning: mapfile: text segment: section `.text%first_marker' does not appear in file `../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jdmarker.o'
ld: warning: mapfile: text segment: section `.text%get_soi' does not appear in file `../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jdmarker.o'
ld: warning: mapfile: text segment: section `.text%get_dri' does not appear in file `../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jdmarker.o'
ld: warning: mapfile: text segment: section `.text%use_merged_upsample' does not appear in file `../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jdmaster.o'
ld: warning: mapfile: text segment: section `.text%prepare_range_limit_table' does not appear in file `../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jdmaster.o'
ld: warning: mapfile: text segment: section `.text%build_ycc_rgb_table' does not appear in file `../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jdcolor.o'
ld: warning: mapfile: text segment: section `.text%start_iMCU_row' does not appear in file `../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jdcoefct.o'
ld: warning: mapfile: text segment: section `.text%set_wraparound_pointers' does not appear in file `../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jdmainct.o'
ld: warning: mapfile: text segment: section `.text%set_bottom_pointers' does not appear in file `../../../build/solaris-sparcv9/tmp/sun/sun.awt/jpeg/obj64/jdmainct.o'

Comments
SUGGESTED FIX http://sa.sfbay.sun.com/projects/java2d_data/7/6989774/
2011-01-19

EVALUATION There are several groups of warnings: - unused local variables: unused variables were removed - possible data loss due to type conversion: appropriate types were used, or explicit types casts were introduced - warnings like "variable 'orderedBands' might be clobbered by 'longjmp' or 'vfork'": I found no way to avoid this, except to suppress it by gcc's option. This warning indicates that some variable is placed to a register by optimized compiler and it's value might be lost on longjmp() call. Recommended way to avoid such warning is to declare the variable as volatile to prevent the optimization. However, this approach does not work because we have to declare all variables as volatile in result. - linker warnings on solaris product builds: the reason of these warnings is that optimized compiler inlines some functions, and hey are not present in object files. Suggested change just comments optimized functions out in reorder lists. Probably we have to investigate whether reordering provides any benefit in case of jpeg library.
2011-01-19