<AWT Dev> [OpenJDK 2D-Dev] RFR [XS] : 8228368: avoid incompatible pointer to integer conversion initializing gint in gtk2_interface
Philip Race
philip.race at oracle.com
Thu Jul 18 14:25:50 UTC 2019
Looks OK.
-phil.
On 7/18/19, 6:01 AM, Baesken, Matthias wrote:
>
> 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/
> <http://cr.openjdk.java.net/%7Embaesken/webrevs/8228368.0/>
>
> Thanks, Matthias
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/awt-dev/attachments/20190718/47a696f7/attachment.html>
More information about the awt-dev
mailing list