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).

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

Commit messages:
 - awt_Component.h has some variable that is only used in debug-code; harfbuzz 
hass issues that are only fixed upstream
 - Fix TestFilesCompilation, remove unused variable
 - JDK-8388932

Changes: https://git.openjdk.org/jdk/pull/32298/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=32298&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8388932
  Stats: 12 lines in 7 files changed: 2 ins; 1 del; 9 mod
  Patch: https://git.openjdk.org/jdk/pull/32298.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/32298/head:pull/32298

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

Reply via email to