This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch][gui] warning patrol no 3 gtk-peer stuff


Thomas Fitzsimmons wrote:

to worry about returning it. */
-  (void) funcPtr((void *) funcArg);
+  (void) funcPtr((void *) (size_t)funcArg);
  /* Fall off the end and terminate the thread of control. */
}


These size_t casts seem wrong. Have you looked into using intptr_t?

They are not wrong, they are not correct. ;)


Like this ?

-  (void) funcPtr((void *) funcArg);
+  (void) funcPtr((void *) (intptr_t)funcArg);



+/* Union used for type punning. */
+union widget_union
+{
+  void **void_widget;
+  GtkWidget **widget;
+};
+


This union should be moved to gtkpeer.h and ev_widget_union should be
eliminated.

Done.



Thanks, Andreas


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]