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

jkernel native compiler warnings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • 7
    • 7
    • deploy

      Compiler warnings in jkernel code. (Windows only code I suspect) This is with VS2010 compiler.

      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.jkernel/jkernel/obj_gO/kernel.pdb -FmC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/sun/sun.jkernel/jkernel/obj_gO/kernel.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.jkernel/jkernel/CClassHeaders -I../../../src/windows/javavm/export -I../../../src/share/javavm/export -I../../../src/share/native/common -I../../../src/windows/native/common -I../../../src/share/native/sun/jkernel -I../../../src/windows/native/sun/jkernel -DEXTRA_COMP_INSTALL_PATH=lib\\\\deploy\\\\lzma.dll -c -FoC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/sun/sun.jkernel/jkernel/obj_gO/kernel.obj ../../../src/windows/native/sun/jkernel/kernel.cpp
      kernel.cpp
      c:\build_area\jdk7\jdk\src\windows\native\sun\jkernel\DownloadDialog.h(57) : warning C4005: '__in' : macro redefinition
              C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\specstrings_strict.h(188) : see previous definition of '__in'
      c:\build_area\jdk7\jdk\src\windows\native\sun\jkernel\DownloadDialog.h(58) : warning C4005: '__in_opt' : macro redefinition
              C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\specstrings_strict.h(224) : see previous definition of '__in_opt'
      c:\build_area\jdk7\jdk\src\windows\native\sun\jkernel\DownloadDialog.h(59) : warning C4005: '__out_opt' : macro redefinition
              C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\specstrings_strict.h(231) : see previous definition of '__out_opt'
      ../../../src/windows/native/sun/jkernel/kernel.cpp(513) : warning C4995: 'sprintf': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(536) : warning C4995: 'sprintf': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(548) : warning C4995: 'sprintf': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(593) : warning C4995: 'sprintf': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(596) : warning C4995: 'strcpy': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(635) : warning C4995: 'sprintf': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(650) : warning C4995: 'strcpy': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(680) : warning C4995: 'wsprintf': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(680) : warning C4995: 'wsprintfA': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(807) : warning C4805: '==' : unsafe mix of type 'BOOL' and type 'bool' in operation
      ../../../src/windows/native/sun/jkernel/kernel.cpp(896) : warning C4995: 'strcat': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(898) : warning C4018: '>' : signed/unsigned mismatch
      ../../../src/windows/native/sun/jkernel/kernel.cpp(903) : warning C4995: 'strcat': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1081) : warning C4509: nonstandard extension used: 'Java_sun_jkernel_DownloadManager_downloadFromURLImpl' uses SEH and 'dh' has destructor
              ../../../src/windows/native/sun/jkernel/kernel.cpp(1064) : see declaration of 'dh'
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1111) : warning C4995: 'strcpy': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1112) : warning C4995: 'strcat': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1113) : warning C4995: 'strcpy': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1114) : warning C4995: 'strcat': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1125) : warning C4995: 'strcpy': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1126) : warning C4995: 'strcat': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1140) : warning C4995: 'strcpy': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1160) : warning C4995: 'strcpy': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1161) : warning C4995: 'strcat': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1163) : warning C4995: 'strcat': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1164) : warning C4995: 'strcat': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1171) : warning C4995: 'strcat': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1178) : warning C4995: 'strcpy': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1179) : warning C4995: 'strcat': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1180) : warning C4995: 'strcat': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1191) : warning C4995: 'strcpy': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1192) : warning C4995: 'strcat': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1209) : warning C4995: 'strcpy': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1210) : warning C4995: 'strcat': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1220) : warning C4995: 'strcpy': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1221) : warning C4995: 'strcat': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1222) : warning C4995: 'strcat': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1223) : warning C4995: 'strcat': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1261) : warning C4995: 'strcat': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1288) : warning C4995: 'strcat': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1364) : warning C4996: 'ATL::CRegKey::QueryValue': CRegKey::QueryValue(TCHAR *value, TCHAR *valueName) has been superseded by CRegKey::QueryStringValue and CRegKey::QueryMultiStringValue
              C:\Program Files\Microsoft Visual Studio 10.0\VC\ATLMFC\INCLUDE\atlbase.h(5526) : see declaration of 'ATL::CRegKey::QueryValue'
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1387) : warning C4996: 'ATL::CRegKey::QueryValue': CRegKey::QueryValue(TCHAR *value, TCHAR *valueName) has been superseded by CRegKey::QueryStringValue and CRegKey::QueryMultiStringValue
              C:\Program Files\Microsoft Visual Studio 10.0\VC\ATLMFC\INCLUDE\atlbase.h(5526) : see declaration of 'ATL::CRegKey::QueryValue'
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1412) : warning C4996: 'ATL::CRegKey::QueryValue': CRegKey::QueryValue(DWORD, TCHAR *valueName) has been superseded by CRegKey::QueryDWORDValue
              C:\Program Files\Microsoft Visual Studio 10.0\VC\ATLMFC\INCLUDE\atlbase.h(5521) : see declaration of 'ATL::CRegKey::QueryValue'
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1451) : warning C4995: 'strcat': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1455) : warning C4995: 'strcpy': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1456) : warning C4995: 'strcat': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1482) : warning C4995: 'strcpy': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1483) : warning C4995: 'strcat': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1509) : warning C4995: 'wsprintf': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1509) : warning C4995: 'wsprintfA': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1518) : warning C4995: 'wsprintf': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1518) : warning C4995: 'wsprintfA': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1525) : warning C4995: 'strcpy': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1526) : warning C4995: 'strcat': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1535) : warning C4995: 'strcpy': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1536) : warning C4995: 'strcat': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1540) : warning C4995: 'wsprintf': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1540) : warning C4995: 'wsprintfA': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1554) : warning C4995: 'strcpy': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1555) : warning C4995: 'strcat': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1559) : warning C4995: 'wsprintf': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1559) : warning C4995: 'wsprintfA': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1565) : warning C4995: 'strcpy': name was marked as #pragma deprecated
      ../../../src/windows/native/sun/jkernel/kernel.cpp(1566) : warning C4995: 'strcat': name was marked as #pragma deprecated
      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.jkernel/jkernel/obj_gO/DownloadDialog.pdb -FmC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/sun/sun.jkernel/jkernel/obj_gO/DownloadDialog.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.jkernel/jkernel/CClassHeaders -I../../../src/windows/javavm/export -I../../../src/share/javavm/export -I../../../src/share/native/common -I../../../src/windows/native/common -I../../../src/share/native/sun/jkernel -I../../../src/windows/native/sun/jkernel -DEXTRA_COMP_INSTALL_PATH=lib\\\\deploy\\\\lzma.dll -c -FoC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/sun/sun.jkernel/jkernel/obj_gO/DownloadDialog.obj ../../../src/windows/native/sun/jkernel/DownloadDialog.cpp
      DownloadDialog.cpp
      c:\build_area\jdk7\jdk\src\windows\native\sun\jkernel\DownloadDialog.h(57) : warning C4005: '__in' : macro redefinition
              C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\specstrings_strict.h(188) : see previous definition of '__in'
      c:\build_area\jdk7\jdk\src\windows\native\sun\jkernel\DownloadDialog.h(58) : warning C4005: '__in_opt' : macro redefinition
              C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\specstrings_strict.h(224) : see previous definition of '__in_opt'
      c:\build_area\jdk7\jdk\src\windows\native\sun\jkernel\DownloadDialog.h(59) : warning C4005: '__out_opt' : macro redefinition
              C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\specstrings_strict.h(231) : see previous definition of '__out_opt'
      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.jkernel/jkernel/obj_gO/DownloadHelper.pdb -FmC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/sun/sun.jkernel/jkernel/obj_gO/DownloadHelper.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.jkernel/jkernel/CClassHeaders -I../../../src/windows/javavm/export -I../../../src/share/javavm/export -I../../../src/share/native/common -I../../../src/windows/native/common -I../../../src/share/native/sun/jkernel -I../../../src/windows/native/sun/jkernel -DEXTRA_COMP_INSTALL_PATH=lib\\\\deploy\\\\lzma.dll -c -FoC:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/sun/sun.jkernel/jkernel/obj_gO/DownloadHelper.obj ../../../src/windows/native/sun/jkernel/DownloadHelper.cpp
      DownloadHelper.cpp
      c:\build_area\jdk7\jdk\src\windows\native\sun\jkernel\DownloadDialog.h(57) : warning C4005: '__in' : macro redefinition
              C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\specstrings_strict.h(188) : see previous definition of '__in'
      c:\build_area\jdk7\jdk\src\windows\native\sun\jkernel\DownloadDialog.h(58) : warning C4005: '__in_opt' : macro redefinition
              C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\specstrings_strict.h(224) : see previous definition of '__in_opt'
      c:\build_area\jdk7\jdk\src\windows\native\sun\jkernel\DownloadDialog.h(59) : warning C4005: '__out_opt' : macro redefinition
              C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\specstrings_strict.h(231) : see previous definition of '__out_opt'
      Also a linker warning: (same file listed twice?)

      C:/PROGRA~1/MICROS~2.0/Common7/Tools/../../Vc/Bin/link -dll -out:C:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/sun/sun.jkernel/jkernel/obj_gO/jkernel.dll \
      -map:C:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/sun/sun.jkernel/jkernel/obj_gO/jkernel.map \
      -nologo /opt:REF /incremental:no /manifest /debug /LIBPATH:C:/DXSDK/Lib @C:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/sun/sun.jkernel/jkernel/obj_gO/jkernel.lcf \
      C:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/lib/java.lib C:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/lib/java.lib advapi32.lib urlmon.lib wininet.lib shlwapi.lib version.lib comctl32.lib gdi32.lib -def:../../../src/windows/native/sun/jkernel/kernel.def
      C:/BUILD_~1/jdk7/build/windows-i586/../windows-i586-fastdebug/tmp/sun/sun.jkernel/jkernel/obj_gO/DownloadHelper.obj : warning LNK4042: object specified more than once; extras ignored

            Unassigned Unassigned
            ohair Kelly Ohair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: