Hi,

On Wed, 2005-08-31 at 17:31 -0400, Thomas Fitzsimmons wrote:
> I committed this fix for
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20782
> We now simply return NULL if a JAWT call is made before a widget is
> realized.

I committed this little fixlet to make --enable-Werror happy:

2005-09-01  Mark Wielaard  <[EMAIL PROTECTED]>

        * native/jni/gtk-peer/gtk_jawt.c
        (classpath_jawt_get_visualID): Cast returned NULL to VisualID.
        (classpath_jawt_get_drawable): Cast returned NULL to Drawable.

Cheers,

Mark


Index: native/jni/gtk-peer/gtk_jawt.c
===================================================================
RCS file: /cvsroot/classpath/classpath/native/jni/gtk-peer/gtk_jawt.c,v
retrieving revision 1.3
diff -u -r1.3 gtk_jawt.c
--- native/jni/gtk-peer/gtk_jawt.c	31 Aug 2005 21:27:06 -0000	1.3
+++ native/jni/gtk-peer/gtk_jawt.c	1 Sep 2005 16:32:20 -0000
@@ -117,7 +117,7 @@
       return visual->visualid;
     }
   else
-    return NULL;
+    return (VisualID) NULL;
 }
 
 /* Does not require locking: meant to be called after the drawing
@@ -151,7 +151,7 @@
       return drawable;
     }
   else
-    return NULL;
+    return (Drawable) NULL;
 }
 
 jint

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to