-
Bug
-
Resolution: Fixed
-
P4
-
17
-
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, seeJDK-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
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
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
- relates to
-
JDK-8293117 Add atomic bitset functions
- Resolved
-
JDK-8322405 Add atomic bitset functions
- Resolved