Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6989114

(hpi) compiler warning messages

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 7
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      Compiler warnings on windows in hpi code:

      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/hpi/windows_threads/obj_gO/linker_md.pdb -FmC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/java/hpi/windows_threads/obj_gO/linker_md.map -wd4800 -W3 -D _CRT_SECURE_NO_DEPRECATE -DDEBUG -DLOGGING -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/hpi/windows_threads/CClassHeaders -I../../../../src/windows/javavm/export -I../../../../src/share/javavm/export -I../../../../src/windows/hpi/include -I../../../../src/windows/hpi/export -I../../../../src/share/hpi/include -I../../../../src/share/hpi/export -c -FoC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/java/hpi/windows_threads/obj_gO/linker_md.obj ../../../../src/windows/hpi/src/linker_md.c
      linker_md.c
      ../../../../src/windows/hpi/src/linker_md.c(90) : 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/java/hpi/windows_threads/obj_gO/memory_md.pdb -FmC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/java/hpi/windows_threads/obj_gO/memory_md.map -wd4800 -W3 -D _CRT_SECURE_NO_DEPRECATE -DDEBUG -DLOGGING -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/hpi/windows_threads/CClassHeaders -I../../../../src/windows/javavm/export -I../../../../src/share/javavm/export -I../../../../src/windows/hpi/include -I../../../../src/windows/hpi/export -I../../../../src/share/hpi/include -I../../../../src/share/hpi/export -c -FoC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/java/hpi/windows_threads/obj_gO/memory_md.obj ../../../../src/windows/hpi/src/memory_md.c
      memory_md.c
      ../../../../src/windows/hpi/src/memory_md.c(295) : warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
              C:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE\string.h(238) : see declaration of 'strdup'

      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/hpi/windows_threads/obj_gO/socket_md.pdb -FmC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/java/hpi/windows_threads/obj_gO/socket_md.map -wd4800 -W3 -D _CRT_SECURE_NO_DEPRECATE -DDEBUG -DLOGGING -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/hpi/windows_threads/CClassHeaders -I../../../../src/windows/javavm/export -I../../../../src/share/javavm/export -I../../../../src/windows/hpi/include -I../../../../src/windows/hpi/export -I../../../../src/share/hpi/include -I../../../../src/share/hpi/export -c -FoC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/java/hpi/windows_threads/obj_gO/socket_md.obj ../../../../src/windows/hpi/src/socket_md.c
      socket_md.c
      ../../../../src/windows/hpi/src/socket_md.c(120) : warning C4101: 'info' : 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/hpi/windows_threads/obj_gO/sys_api_md.pdb -FmC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/java/hpi/windows_threads/obj_gO/sys_api_md.map -wd4800 -W3 -D _CRT_SECURE_NO_DEPRECATE -DDEBUG -DLOGGING -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/hpi/windows_threads/CClassHeaders -I../../../../src/windows/javavm/export -I../../../../src/share/javavm/export -I../../../../src/windows/hpi/include -I../../../../src/windows/hpi/export -I../../../../src/share/hpi/include -I../../../../src/share/hpi/export -c -FoC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/java/hpi/windows_threads/obj_gO/sys_api_md.obj ../../../../src/windows/hpi/src/sys_api_md.c
      sys_api_md.c
      ../../../../src/windows/hpi/src/sys_api_md.c(50) : warning C4996: 'open': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _open. See online help for details.
              C:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE\io.h(312) : see declaration of 'open'
      ../../../../src/windows/hpi/src/sys_api_md.c(142) : warning C4018: '>' : signed/unsigned mismatch
      ../../../../src/windows/hpi/src/sys_api_md.c(298) : warning C4996: 'read': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _read. See online help for details.
              C:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE\io.h(313) : see declaration of 'read'
      ../../../../src/windows/hpi/src/sys_api_md.c(303) : warning C4996: 'write': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _write. See online help for details.
              C:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE\io.h(318) : see declaration of 'write'
      ../../../../src/windows/hpi/src/sys_api_md.c(308) : warning C4996: 'close': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _close. See online help for details.
              C:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE\io.h(302) : see declaration of 'close'


      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/hpi/native_threads/CClassHeaders -I../../../../src/solaris/javavm/export -I../../../../src/share/javavm/export -I../../../../src/solaris/hpi/native_threads/include -I../../../../src/solaris/hpi/include -I../../../../src/solaris/hpi/export -I../../../../src/share/hpi/include -I../../../../src/share/hpi/export -D_REENTRANT -DNATIVE -DUSE_PTHREADS -DMOOT_PRIORITIES -DNO_INTERRUPTIBLE_IO -c -o /BUILD_AREA/jdk7/build/linux-i586/../linux-i586-fastdebug/tmp/java/hpi/native_threads/obj_gO/threads_md.o ../../../../src/solaris/hpi/native_threads/src/threads_md.c
      ../../../../src/solaris/hpi/native_threads/src/threads_md.c: In function 'sysThreadIsInterrupted':
      ../../../../src/solaris/hpi/native_threads/src/threads_md.c:923: warning: suggest braces around empty body in 'do' statement

      /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/hpi/native_threads/CClassHeaders -I../../../../src/solaris/javavm/export -I../../../../src/share/javavm/export -I../../../../src/solaris/hpi/native_threads/include -I../../../../src/solaris/hpi/include -I../../../../src/solaris/hpi/export -I../../../../src/share/hpi/include -I../../../../src/share/hpi/export -D_REENTRANT -DNATIVE -DUSE_PTHREADS -DMOOT_PRIORITIES -DNO_INTERRUPTIBLE_IO -c -o /BUILD_AREA/jdk7/build/linux-i586/../linux-i586-fastdebug/tmp/java/hpi/native_threads/obj_gO/condvar_md.o ../../../../src/solaris/hpi/native_threads/src/condvar_md.c
      ../../../../src/solaris/hpi/native_threads/src/condvar_md.c: In function 'condvarWait':
      ../../../../src/solaris/hpi/native_threads/src/condvar_md.c:153: warning: suggest braces around empty body in 'do' statement
      ../../../../src/solaris/hpi/native_threads/src/condvar_md.c: In function 'condvarTimedWait':
      ../../../../src/solaris/hpi/native_threads/src/condvar_md.c:265: warning: suggest braces around empty body in 'do' statement


      /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/hpi/native_threads/CClassHeaders -I../../../../src/solaris/javavm/export -I../../../../src/share/javavm/export -I../../../../src/solaris/hpi/native_threads/include -I../../../../src/solaris/hpi/include -I../../../../src/solaris/hpi/export -I../../../../src/share/hpi/include -I../../../../src/share/hpi/export -D_REENTRANT -DNATIVE -DUSE_PTHREADS -DMOOT_PRIORITIES -DNO_INTERRUPTIBLE_IO -c -o /BUILD_AREA/jdk7/build/linux-i586/../linux-i586-fastdebug/tmp/java/hpi/native_threads/obj_gO/threads_linux.o ../../../../src/solaris/hpi/native_threads/src/threads_linux.c
      ../../../../src/solaris/hpi/native_threads/src/sys_api_td.c: In function 'sysGetSockOpt':
      ../../../../src/solaris/hpi/native_threads/src/sys_api_td.c:558: warning: pointer targets in passing argument 5 of 'getsockopt' differ in signedness

      Solaris:

      /localtools/i586/SUNWspro/SS12u1/bin/cc -g -xO2 -L/BUILD_AREA/jdk7/build/solaris-i586/../solaris-i586-fastdebug/tmp/java/hpi/native_threads/obj_gO -xc99=%none -xCC -errshort=tags -Xa -v -mt -xstrconst -W0,-noglobal -m32 -erroff=E_BAD_PRAGMA_PACK_VALUE -KPIC -DDEBUG -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/java/hpi/native_threads/CClassHeaders -I../../../../src/solaris/javavm/export -I../../../../src/share/javavm/export -I../../../../src/solaris/hpi/native_threads/include -I../../../../src/solaris/hpi/include -I../../../../src/solaris/hpi/export -I../../../../src/share/hpi/include -I../../../../src/share/hpi/export -D_REENTRANT -DNATIVE -DHAVE_GETHRVTIME -DHAVE_FILIOH -c -o /BUILD_AREA/jdk7/build/solaris-i586/../solaris-i586-fastdebug/tmp/java/hpi/native_threads/obj_gO/system_md.o ../../../../src/solaris/hpi/src/system_md.c
      "../../../../src/solaris/hpi/src/system_md.c", line 307: warning: asm() statement disables optimization within function

        Attachments

          Activity

            People

            • Assignee:
              alanb Alan Bateman
              Reporter:
              ohair Kelly Ohair (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: