RFR: 8357193: [VS 2022 17.14] Warning C5287 in debugInit.c: enum type mismatch during build

Sergey Bylokhov serb at openjdk.org
Mon May 19 02:24:24 UTC 2025


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.

-------------

Commit messages:
 - 8357193: [VS 2022 17.14] Warning C5287 in debugInit.c: enum type mismatch during build

Changes: https://git.openjdk.org/jdk/pull/25293/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25293&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8357193
  Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/25293.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25293/head:pull/25293

PR: https://git.openjdk.org/jdk/pull/25293


More information about the serviceability-dev mailing list