RFR: 8357193: [VS 2022 17.14] Warning C5287 in debugInit.c: enum type mismatch during build
Chris Plummer
cjplummer at openjdk.org
Mon May 19 03:00:55 UTC 2025
On Sun, 18 May 2025 23:44:13 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
> This patch suppresses compiler warning C5287 triggered in debugInit.c when building with Visual Studio 2022 version 17.14 (released a few days ago).
>
> I’m simply disabling the warning to unblock the broken build. This change is intended to be backported to update releases.
>
> A proper fix (e.g., explicit type cast) may be introduced later if necessary.
Other references to the jvmti version in the debug agent use the result of calling GetVersionNumber(), which provides a jint. These references are otherwise doing the same bit masking and not seeing this warning. Using the compile time JVMTI_VERSION is appropriate for the code in question (it wants the compile time version), and simply casting it to a jint should resolve the warning.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25293#issuecomment-2889473633
More information about the serviceability-dev
mailing list