On Mon, 23 Nov 2026 11:41:34 GMT, Matthias Baesken <[email protected]> wrote:
>> While testing new MSVC warning flags, a number of unused but initialized >> variables in java.desktop have been found. >> A lot of them can be removed. A few are needed for special build variants >> like (fast)debug only so they have to stay. >> >> --------- >> - [x] I confirm that I make this contribution in accordance with the >> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). > > Matthias Baesken has updated the pull request incrementally with one > additional commit since the last revision: > > Bring back depth output in trace Looks basically good to me. src/java.desktop/share/native/common/java2d/opengl/OGLSurfaceData.c line 360: > 358: J2dTraceLn(J2D_TRACE_VERBOSE, > 359: " framebuffer is incomplete: depth=%d status=%x", > 360: /* depthSize = */ (16 + (i * 8)), status); Why is this better? src/java.desktop/windows/native/libawt/windows/awt_Desktop.cpp line 119: > 117: FORMAT_MESSAGE_FROM_SYSTEM | > 118: FORMAT_MESSAGE_IGNORE_INSERTS, > 119: NULL, Indentation could be improved. src/java.desktop/windows/native/libawt/windows/awt_PrintJob.cpp line 2756: > 2754: posX, posY, // starting position for the text > 2755: flags, // glyphCodes?, y advances? > 2756: NULL, // optional clipping-opaquing > rectangle Indentation could be improved. ------------- PR Review: https://git.openjdk.org/jdk/pull/33495#pullrequestreview-6038215514 PR Review Comment: https://git.openjdk.org/jdk/pull/33495#discussion_r4679174462 PR Review Comment: https://git.openjdk.org/jdk/pull/33495#discussion_r4679179376 PR Review Comment: https://git.openjdk.org/jdk/pull/33495#discussion_r4679194651
