[patch][gui] warning patrol no 3 gtk-peer stuff
Andreas Tobler
toa@pop.agri.ch
Fri Oct 22 12:01:00 GMT 2004
Hi all,
after this patch it should be possible to compile with -Werror in
jni/gtk-peer.
Please review carefully, did I do the type-punning warning elimination
right ?
Also, is the pointer cast in GThreadNativeMethodRunner.c right?
Thanks ia.
Andreas
2004-10-22 Andreas Tobler <a.tobler@schweiz.ch>
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c
(Java_gnu_java_awt_peer_gtk_GtkFileDialogPeer_nativeSetFilenameFilter):
Fix pointer warning.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
(Java_gnu_java_awt_peer_gtk_GdkGraphics_clearRect): Fix type punning
warnings with introduction of unions.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c (pre_event_handler):
Likewise.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
(window_get_new_state): Likewise.
(window_property_changed_cb): Likewise.
(window_active_state_change_cb): Mark unused variables unused.
(window_focus_state_change_cb): Likewise.
(window_focus_in_cb): Likewise.
(window_focus_out_cb): Likewise.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c
(Java_gnu_java_awt_peer_gtk_GdkFontPeer_setFont): Convert
PangoFontMap correctly with PANGO_FT2FONT_MAP macro.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GThreadNativeMethodRunner.c
(Java_gnu_java_awt_peer_gtk_GThreadNativeMethodRunner_nativeRun):
Fix pointer warning.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gtk-peer-warning4.diff
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20041022/04935dfd/attachment.ksh>
More information about the Java-patches
mailing list