`Java_com_sun_java_swing_plaf_gtk_GTKLookAndFeel_applyThemeIfNeeded` has a 
`jboolean` return type (aka `unsigned char`, 8 bit).

`apply_theme_if_needed` has a `gboolean` return type (32 bit).

However, there is no issue with this implicit conversion, as we are only using 
`0` and `1` as values.

This fix uses `result ? JNI_TRUE : JNI_FALSE` to remove the warning and adhere 
to standard practices.

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

Commit messages:
 - 8380228: JNI primitive type mismatch in 
Java_com_sun_java_swing_plaf_gtk_GTKLookAndFeel_applyThemeIfNeeded of 
swing_GTKEngine.c:403 (ID: 52423)

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

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

Reply via email to