<AWT Dev> RFR [XS] : 8228368: avoid incompatible pointer to integer conversion initializing gint in gtk2_interface

Baesken, Matthias matthias.baesken at sap.com
Thu Jul 18 13:01:25 UTC 2019


Hello, please review this very small fix .

Currently we assign NULL two times in gtk2_interface.c to gint values.
This  leads to warning like this (xlc16 / clang) :

/jdk/src/java.desktop/unix/native/libawt_xawt/awt/gtk2_interface.c:2454:10: warning: incompatible pointer to integer conversion initializing 'gint' (aka 'int') with an expression of type 'void *' [-Wint-conversion]
    gint intval = NULL;
         ^ ~~~~
/jdk/src/java.desktop/unix/native/libawt_xawt/awt/gtk2_interface.c:2461:10: warning: incompatible pointer to integer conversion initializing 'gint' (aka 'int') with an expression of type 'void *' [-Wint-conversion]
    gint intval = NULL;
         ^ ~~~~



Bug/webrev :

https://bugs.openjdk.java.net/browse/JDK-8228368

http://cr.openjdk.java.net/~mbaesken/webrevs/8228368.0/


Thanks, Matthias

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/awt-dev/attachments/20190718/dff54919/attachment.html>


More information about the awt-dev mailing list