[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cp-patches] fix GTK JAWT assertion failures
From: |
Mark Wielaard |
Subject: |
Re: [cp-patches] fix GTK JAWT assertion failures |
Date: |
Thu, 01 Sep 2005 18:33:09 +0200 |
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 <address@hidden>
* 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
signature.asc
Description: This is a digitally signed message part
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [cp-patches] fix GTK JAWT assertion failures,
Mark Wielaard <=