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

[17u] VS2017 build fails with warning after 8293117.

XMLWordPrintable

    • b01
    • windows

      Since JDK-8293117 was pushed to 17 SAP's windows build which uses VS2017 fails with a warning in test_atomic.cpp. The windwos build of the GHA actions which uses VS2019 works.

      I don't want to do adaptions for an old compiler in the code, so I disable the warning for VS2017 only. There is already a section for VS2017 specific compiler settings in the build.

      This change applies to 17u and older only as jdk20 and later don't support VS2017 any more, see JDK-8293162.

      workspace\openjdk-17u-dev-windows_x86_64-dbg\jdk\test\hotspot\gtest\runtime\test_atomic.cpp(208): error C2220: warning treated as error - no 'object' file generated
      workspace\openjdk-17u-dev-windows_x86_64-dbg\jdk\test\hotspot\gtest\runtime\test_atomic.cpp(282): note: see reference to class template instantiation 'AtomicBitopsTestSupport<int32_t>' being compiled
      workspace\openjdk-17u-dev-windows_x86_64-dbg\jdk\test\hotspot\gtest\runtime\test_atomic.cpp(208): warning C4309: 'static_cast': truncation of constant value
      workspace\openjdk-17u-dev-windows_x86_64-dbg\jdk\test\hotspot\gtest\runtime\test_atomic.cpp(209): warning C4309: 'static_cast': truncation of constant value

            goetz Goetz Lindenmaier
            goetz Goetz Lindenmaier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: