Compiler warnings in java/nio 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 -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/java/java.nio/nio/CClassHeaders -I../../../src/solaris/javavm/export -I../../../src/share/javavm/export -I../../../src/share/native/sun/nio/ch -I../../../src/share/native/java/io -I../../../src/share/native/java/net -I../../../src/solaris/native/java/net -I/BUILD_AREA/jdk7/build/linux-i586/../linux-i586-fastdebug/tmp/java/java.nio/nio/CClassHeaders/../../../java.lang/java/CClassHeaders -I../../../src/share/native/common -I../../../src/solaris/native/common -I../../../src/share/native/java/nio -I../../../src/solaris/native/java/nio -c -o /BUILD_AREA/jdk7/build/linux-i586/../linux-i586-fastdebug/tmp/java/java.nio/nio/obj_gO/ServerSocketChannelImpl.o ../../../src/solaris/native/sun/nio/ch/ServerSocketChannelImpl.c
../../../src/solaris/native/sun/nio/ch/Net.c: In function 'Java_sun_nio_ch_Net_getIntOption0':
../../../src/solaris/native/sun/nio/ch/Net.c:322: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness
../../../src/solaris/native/sun/nio/ch/Net.c: In function 'Java_sun_nio_ch_Net_getInterface4':
../../../src/solaris/native/sun/nio/ch/Net.c:533: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness
../../../src/solaris/native/sun/nio/ch/Net.c: In function 'Java_sun_nio_ch_Net_getInterface6':
../../../src/solaris/native/sun/nio/ch/Net.c:562: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness
/usr/bin/gcc -g -O2 -fno-strict-aliasing -fPIC -W -Wall -Wno-unused -Wno-parentheses -fno-omit-frame-pointer -D_LITTLE_ENDIAN -DDEBUG -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/java/java.nio/nio/CClassHeaders -I../../../src/solaris/javavm/export -I../../../src/share/javavm/export -I../../../src/share/native/sun/nio/ch -I../../../src/share/native/java/io -I../../../src/share/native/java/net -I../../../src/solaris/native/java/net -I/BUILD_AREA/jdk7/build/linux-i586/../linux-i586-fastdebug/tmp/java/java.nio/nio/CClassHeaders/../../../java.lang/java/CClassHeaders -I../../../src/share/native/common -I../../../src/solaris/native/common -I../../../src/share/native/java/nio -I../../../src/solaris/native/java/nio -c -o /BUILD_AREA/jdk7/build/linux-i586/../linux-i586-fastdebug/tmp/java/java.nio/nio/obj_gO/GnomeFileTypeDetector.o ../../../src/solaris/native/sun/nio/fs/GnomeFileTypeDetector.c
../../../src/solaris/native/sun/nio/ch/UnixAsynchronousSocketChannelImpl.c: In function 'Java_sun_nio_ch_UnixAsynchronousSocketChannelImpl_checkConnect':
../../../src/solaris/native/sun/nio/ch/UnixAsynchronousSocketChannelImpl.c:46: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness
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/java/java.nio/nio/obj_gO/ServerSocketChannelImpl.pdb -FmC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/java/java.nio/nio/obj_gO/ServerSocketChannelImpl.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/java/java.nio/nio/CClassHeaders -I../../../src/windows/javavm/export -I../../../src/share/javavm/export -I../../../src/share/native/sun/nio/ch -I../../../src/share/native/java/io -I../../../src/share/native/java/net -I../../../src/windows/native/java/net -IC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/java/java.nio/nio/CClassHeaders/../../../java.lang/java/CClassHeaders -I../../../src/share/native/common -I../../../src/windows/native/common -I../../../src/share/native/java/nio -I../../../src/windows/native/java/nio -c -FoC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/java/java.nio/nio/obj_gO/ServerSocketChannelImpl.obj ../../../src/windows/native/sun/nio/ch/ServerSocketChannelImpl.c
ServerSocketChannelImpl.c
../../../src/windows/native/sun/nio/ch/ServerSocketChannelImpl.c(87) : warning C4101: 'ia' : 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/java/java.nio/nio/obj_gO/WindowsSelectorImpl.pdb -FmC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/java/java.nio/nio/obj_gO/WindowsSelectorImpl.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/java/java.nio/nio/CClassHeaders -I../../../src/windows/javavm/export -I../../../src/share/javavm/export -I../../../src/share/native/sun/nio/ch -I../../../src/share/native/java/io -I../../../src/share/native/java/net -I../../../src/windows/native/java/net -IC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/java/java.nio/nio/CClassHeaders/../../../java.lang/java/CClassHeaders -I../../../src/share/native/common -I../../../src/windows/native/common -I../../../src/share/native/java/nio -I../../../src/windows/native/java/nio -c -FoC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/java/java.nio/nio/obj_gO/WindowsSelectorImpl.obj ../../../src/windows/native/sun/nio/ch/WindowsSelectorImpl.c
WindowsSelectorImpl.c
../../../src/windows/native/sun/nio/ch/WindowsSelectorImpl.c(226) : warning C4047: 'function' : 'char *' differs in levels of indirection from 'char (*)[8]'
../../../src/windows/native/sun/nio/ch/WindowsSelectorImpl.c(226) : warning C4024: 'recv' : different types for formal and actual parameter 2
Also:
/localtools/i586/SUNWspro/SS12u1/bin/cc -g -xO2 -L/BUILD_AREA/jdk7/build/solaris-i586/../solaris-i586-fastdebug/tmp/sun/com.sun.nio.sctp/sctp/obj_gO -xc99=%none -xCC -errshort=tags -Xa -v -mt -xstrconst -W0,-noglobal -m32 -erroff=E_BAD_PRAGMA_PACK_VALUE -KPIC -DDEBUG -DLOGGING -DDBINFO -D__solaris__ -Di586 -DcpuIntel -D_LITTLE_ENDIAN= -Di386 -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS -I. -I/BUILD_AREA/jdk7/build/solaris-i586/../solaris-i586-fastdebug/tmp/sun/com.sun.nio.sctp/sctp/CClassHeaders -I../../../../../src/solaris/javavm/export -I../../../../../src/share/javavm/export -I../../../../../src/share/native/common -I../../../../../src/solaris/native/common -I../../../../../src/share/native/com/sun/nio/sctp -I../../../../../src/solaris/native/com/sun/nio/sctp -I../../../../../src/share/native/sun/nio/ch -I../../../../../src/share/native/java/net -I../../../../../src/solaris/native/java/net -I/BUILD_AREA/jdk7/build/solaris-i586/../solaris-i586-fastdebug/tmp/sun/com.sun.nio.sctp/sctp/CClassHeaders/../../../../java/java.nio/nio/CClassHeaders -c -o /BUILD_AREA/jdk7/build/solaris-i586/../solaris-i586-fastdebug/tmp/sun/com.sun.nio.sctp/sctp/obj_gO/SctpChannelImpl.o ../../../../../src/solaris/native/sun/nio/ch/SctpChannelImpl.c
"../../../../../src/solaris/native/sun/nio/ch/SctpNet.c", line 556: warning: argument #5 is incompatible with prototype:
prototype: pointer to int : "../../../../../src/share/native/java/net/net_util.h", line 149
argument : pointer to unsigned int
Linux:
/usr/bin/gcc -g -O2 -fno-strict-aliasing -fPIC -W -Wall -Wno-unused -Wno-parentheses -fno-omit-frame-pointer -D_LITTLE_ENDIAN -DDEBUG -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/java/java.nio/nio/CClassHeaders -I../../../src/solaris/javavm/export -I../../../src/share/javavm/export -I../../../src/share/native/sun/nio/ch -I../../../src/share/native/java/io -I../../../src/share/native/java/net -I../../../src/solaris/native/java/net -I/BUILD_AREA/jdk7/build/linux-i586/../linux-i586-fastdebug/tmp/java/java.nio/nio/CClassHeaders/../../../java.lang/java/CClassHeaders -I../../../src/share/native/common -I../../../src/solaris/native/common -I../../../src/share/native/java/nio -I../../../src/solaris/native/java/nio -c -o /BUILD_AREA/jdk7/build/linux-i586/../linux-i586-fastdebug/tmp/java/java.nio/nio/obj_gO/ServerSocketChannelImpl.o ../../../src/solaris/native/sun/nio/ch/ServerSocketChannelImpl.c
../../../src/solaris/native/sun/nio/ch/Net.c: In function 'Java_sun_nio_ch_Net_getIntOption0':
../../../src/solaris/native/sun/nio/ch/Net.c:322: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness
../../../src/solaris/native/sun/nio/ch/Net.c: In function 'Java_sun_nio_ch_Net_getInterface4':
../../../src/solaris/native/sun/nio/ch/Net.c:533: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness
../../../src/solaris/native/sun/nio/ch/Net.c: In function 'Java_sun_nio_ch_Net_getInterface6':
../../../src/solaris/native/sun/nio/ch/Net.c:562: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness
/usr/bin/gcc -g -O2 -fno-strict-aliasing -fPIC -W -Wall -Wno-unused -Wno-parentheses -fno-omit-frame-pointer -D_LITTLE_ENDIAN -DDEBUG -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/java/java.nio/nio/CClassHeaders -I../../../src/solaris/javavm/export -I../../../src/share/javavm/export -I../../../src/share/native/sun/nio/ch -I../../../src/share/native/java/io -I../../../src/share/native/java/net -I../../../src/solaris/native/java/net -I/BUILD_AREA/jdk7/build/linux-i586/../linux-i586-fastdebug/tmp/java/java.nio/nio/CClassHeaders/../../../java.lang/java/CClassHeaders -I../../../src/share/native/common -I../../../src/solaris/native/common -I../../../src/share/native/java/nio -I../../../src/solaris/native/java/nio -c -o /BUILD_AREA/jdk7/build/linux-i586/../linux-i586-fastdebug/tmp/java/java.nio/nio/obj_gO/GnomeFileTypeDetector.o ../../../src/solaris/native/sun/nio/fs/GnomeFileTypeDetector.c
../../../src/solaris/native/sun/nio/ch/UnixAsynchronousSocketChannelImpl.c: In function 'Java_sun_nio_ch_UnixAsynchronousSocketChannelImpl_checkConnect':
../../../src/solaris/native/sun/nio/ch/UnixAsynchronousSocketChannelImpl.c:46: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness
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/java/java.nio/nio/obj_gO/ServerSocketChannelImpl.pdb -FmC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/java/java.nio/nio/obj_gO/ServerSocketChannelImpl.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/java/java.nio/nio/CClassHeaders -I../../../src/windows/javavm/export -I../../../src/share/javavm/export -I../../../src/share/native/sun/nio/ch -I../../../src/share/native/java/io -I../../../src/share/native/java/net -I../../../src/windows/native/java/net -IC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/java/java.nio/nio/CClassHeaders/../../../java.lang/java/CClassHeaders -I../../../src/share/native/common -I../../../src/windows/native/common -I../../../src/share/native/java/nio -I../../../src/windows/native/java/nio -c -FoC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/java/java.nio/nio/obj_gO/ServerSocketChannelImpl.obj ../../../src/windows/native/sun/nio/ch/ServerSocketChannelImpl.c
ServerSocketChannelImpl.c
../../../src/windows/native/sun/nio/ch/ServerSocketChannelImpl.c(87) : warning C4101: 'ia' : 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/java/java.nio/nio/obj_gO/WindowsSelectorImpl.pdb -FmC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/java/java.nio/nio/obj_gO/WindowsSelectorImpl.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/java/java.nio/nio/CClassHeaders -I../../../src/windows/javavm/export -I../../../src/share/javavm/export -I../../../src/share/native/sun/nio/ch -I../../../src/share/native/java/io -I../../../src/share/native/java/net -I../../../src/windows/native/java/net -IC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/java/java.nio/nio/CClassHeaders/../../../java.lang/java/CClassHeaders -I../../../src/share/native/common -I../../../src/windows/native/common -I../../../src/share/native/java/nio -I../../../src/windows/native/java/nio -c -FoC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/java/java.nio/nio/obj_gO/WindowsSelectorImpl.obj ../../../src/windows/native/sun/nio/ch/WindowsSelectorImpl.c
WindowsSelectorImpl.c
../../../src/windows/native/sun/nio/ch/WindowsSelectorImpl.c(226) : warning C4047: 'function' : 'char *' differs in levels of indirection from 'char (*)[8]'
../../../src/windows/native/sun/nio/ch/WindowsSelectorImpl.c(226) : warning C4024: 'recv' : different types for formal and actual parameter 2
Also:
/localtools/i586/SUNWspro/SS12u1/bin/cc -g -xO2 -L/BUILD_AREA/jdk7/build/solaris-i586/../solaris-i586-fastdebug/tmp/sun/com.sun.nio.sctp/sctp/obj_gO -xc99=%none -xCC -errshort=tags -Xa -v -mt -xstrconst -W0,-noglobal -m32 -erroff=E_BAD_PRAGMA_PACK_VALUE -KPIC -DDEBUG -DLOGGING -DDBINFO -D__solaris__ -Di586 -DcpuIntel -D_LITTLE_ENDIAN= -Di386 -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS -I. -I/BUILD_AREA/jdk7/build/solaris-i586/../solaris-i586-fastdebug/tmp/sun/com.sun.nio.sctp/sctp/CClassHeaders -I../../../../../src/solaris/javavm/export -I../../../../../src/share/javavm/export -I../../../../../src/share/native/common -I../../../../../src/solaris/native/common -I../../../../../src/share/native/com/sun/nio/sctp -I../../../../../src/solaris/native/com/sun/nio/sctp -I../../../../../src/share/native/sun/nio/ch -I../../../../../src/share/native/java/net -I../../../../../src/solaris/native/java/net -I/BUILD_AREA/jdk7/build/solaris-i586/../solaris-i586-fastdebug/tmp/sun/com.sun.nio.sctp/sctp/CClassHeaders/../../../../java/java.nio/nio/CClassHeaders -c -o /BUILD_AREA/jdk7/build/solaris-i586/../solaris-i586-fastdebug/tmp/sun/com.sun.nio.sctp/sctp/obj_gO/SctpChannelImpl.o ../../../../../src/solaris/native/sun/nio/ch/SctpChannelImpl.c
"../../../../../src/solaris/native/sun/nio/ch/SctpNet.c", line 556: warning: argument #5 is incompatible with prototype:
prototype: pointer to int : "../../../../../src/share/native/java/net/net_util.h", line 149
argument : pointer to unsigned int
- duplicates
-
JDK-6989466 Miscellaneous compiler warnings in java/lang, java/util, java/io, sun/misc native code
-
- Closed
-