Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8228368

avoid incompatible pointer to integer conversion initializing gint in gtk2_interface

    XMLWordPrintable

    Details

      Backports

        Description

        Currently we assign NULL two times in gtk2_interface.c to gint values. This should be fixed.
        Otherwise it 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;
                 ^ ~~~~

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                mbaesken Matthias Baesken
                Reporter:
                mbaesken Matthias Baesken
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: