On Tue, 2005-11-22 at 14:07 -0500, Lillian Angel wrote:
> I added the code to filter out non-printing characters in native, like
> Mark suggested. It is a lot more efficient.

I'm compiling my local classpath (on x86_64) with --enable-Werror and
this patch broke it.  This patched fix it.  Is const ok for you for this
variable?

TWISTI


Index: native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
===================================================================
RCS file: 
/cvsroot/classpath/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c,v
retrieving revision 1.30
diff -u -3 -p -r1.30 gnu_java_awt_peer_gtk_GdkGraphics.c
--- native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c     22 Nov 2005 
19:08:44 -0000      1.30
+++ native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c     25 Nov 2005 
09:48:57 -0000
@@ -293,7 +293,7 @@ Java_gnu_java_awt_peer_gtk_GdkGraphics_d
   const char *cstr = NULL;
   char *p = NULL;
   char *tmp = NULL;
-  char *sTmp = NULL;
+  const char *sTmp = NULL;
   int count = 0;
   int charSize = 0;
   int baseline_y = 0;




_______________________________________________
Classpath-patches mailing list
Classpath-patches@gnu.org
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to