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

VS2017 (C4838, C4312) Various conversion issues with gtest tests

    XMLWordPrintable

Details

    • b04
    • windows
    • Verified

    Backports

      Description

        test_align.cpp
        <directory>/open/test/hotspot/gtest/utilities/test_align.cpp(33): error C2220: warning treated as error - no 'object' file generated
        <directory>/open/test/hotspot/gtest/utilities/test_align.cpp(33): warning C4838: conversion from 'int' to 'uint64_t' requires a narrowing conversion
           ... (rest of output omitted)
        * For target hotspot_variant-server_libjvm_gtest_objs_test_guardedMemory.obj:
        test_guardedMemory.cpp
        <directory>/open/test/hotspot/gtest/memory/test_guardedMemory.cpp(63): error C2220: warning treated as error - no 'object' file generated
        <directory>/open/test/hotspot/gtest/memory/test_guardedMemory.cpp(63): warning C4312: 'type cast': conversion from 'unsigned int' to 'void *' of greater size
        <directory>/open/test/hotspot/gtest/memory/test_guardedMemory.cpp(71): warning C4312: 'type cast': conversion from 'unsigned int' to 'void *' of greater size
        <directory>/open/test/hotspot/gtest/memory/test_guardedMemory.cpp(84): warning C4312: 'type cast': conversion from 'unsigned int' to 'void *' of greater size
        <directory>/open/test/hotspot/gtest/memory/test_guardedMemory.cpp(105): warning C4312: 'type cast': conversion from 'unsigned int' to 'void *' of greater size
        <directory>/open/test/hotspot/gtest/memory/test_guardedMemory.cpp(117): warning C4312: 'type cast': conversion from 'unsigned int' to 'void *' of greater size

        Attachments

          Issue Links

            Activity

              People

                lfoltan Lois Foltan
                lfoltan Lois Foltan
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: