On Wed, 21 Oct 2026 14:58:51 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).

I removed the maybe_unused usages from the PR.
They would be needed if we want to enable the MSVC warn flag about 
unused/initialized but not referenced vars  (C4189) but currently we cannot do 
this anyway so the maybe_unused is of little value at the moment.

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

PR Comment: https://git.openjdk.org/jdk/pull/33495#issuecomment-6915161478

Reply via email to