On Tue, 11 Aug 2026 09:10:49 GMT, Matthias Baesken <[email protected]> wrote:
> The warning 'local variable is initialized but not referenced' should be > enabled in the JDK native libs build on Windows with MSVC. > We could could do it first with the JDK native libs, because Hotspot contains > a lot of debug-only assert code that triggers those warnings in product > builds, JDK has less of these asserts. > GCC seems to have already similar/related warnings (but they are disabled for > some libs). > > Warning description : > https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-4-c4189?view=msvc-170 > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). This pull request has now been integrated. Changeset: 445ab859 Author: Matthias Baesken <[email protected]> URL: https://git.openjdk.org/jdk/commit/445ab8594e3aef5e9d3bc69b22230f1bc2669378 Stats: 18 lines in 9 files changed: 2 ins; 3 del; 13 mod 8388932: Enable 'local variable is initialized but not referenced' warnings with MSVC in JDK Reviewed-by: prr, azvegint, erikj ------------- PR: https://git.openjdk.org/jdk/pull/32298
