[kaffe] CVS kaffe (dalibor): Fixed compiler warning on sparc-solaris
Kaffe CVS
cvs-commits at kaffe.org
Tue Jan 6 12:26:02 PST 2004
PatchSet 4281
Date: 2004/01/06 20:23:15
Author: dalibor
Branch: HEAD
Tag: (none)
Log:
Fixed compiler warning on sparc-solaris
2004-01-06 Dalibor Topic <robilad at kaffe.org>
* libraries/clib/awt/X/evt.c
(eventStr) Don't define if NDEBUG is defined.
Fixes a compiler warning on sparc-solaris.
Reported by: Riccardo Mottola <zuse at libero.it>
Members:
ChangeLog:1.1868->1.1869
libraries/clib/awt/X/evt.c:1.22->1.23
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1868 kaffe/ChangeLog:1.1869
--- kaffe/ChangeLog:1.1868 Tue Jan 6 20:13:09 2004
+++ kaffe/ChangeLog Tue Jan 6 20:23:15 2004
@@ -1,5 +1,13 @@
2004-01-06 Dalibor Topic <robilad at kaffe.org>
+ * libraries/clib/awt/X/evt.c
+ (eventStr) Don't define if NDEBUG is defined.
+ Fixes a compiler warning on sparc-solaris.
+
+ Reported by: Riccardo Mottola <zuse at libero.it>
+
+2004-01-06 Dalibor Topic <robilad at kaffe.org>
+
* libraries/clib/net/PlainDatagramSocketImpl.c,
libraries/clib/net/PlainSocketImpl.c
(ip2str, ip62str) Don't define if NDEBUG is defined.
Index: kaffe/libraries/clib/awt/X/evt.c
diff -u kaffe/libraries/clib/awt/X/evt.c:1.22 kaffe/libraries/clib/awt/X/evt.c:1.23
--- kaffe/libraries/clib/awt/X/evt.c:1.22 Tue Mar 11 08:00:19 2003
+++ kaffe/libraries/clib/awt/X/evt.c Tue Jan 6 20:23:16 2004
@@ -175,7 +175,7 @@
#define WM_KILLED 1905
-#if defined(KAFFE_VMDEBUG)
+#if defined(KAFFE_VMDEBUG) && !defined(NDEBUG)
static char *eventStr ( int evtId )
{
switch (evtId) {
@@ -206,7 +206,7 @@
default: return "<unknown>";
}
};
-#endif
+#endif /* defined(KAFFE_VMDEBUG) && !defined(NDEBUG) */
static jobject
skip ( JNIEnv* env, Toolkit* X )
More information about the kaffe
mailing list