[kaffe] CVS kaffe (dalibor): Fixed compiler warning on sparc-solaris

Kaffe CVS Kaffe Mailing List <kaffe@kaffe.org>
Tue Jan 6 12:16:02 2004


PatchSet 4280 
Date: 2004/01/06 20:13:09
Author: dalibor
Branch: HEAD
Tag: (none) 
Log:
Fixed compiler warning on sparc-solaris

2004-01-06  Dalibor Topic <robilad@kaffe.org>

        * libraries/clib/net/PlainDatagramSocketImpl.c,
        libraries/clib/net/PlainSocketImpl.c
        (ip2str, ip62str) Don't define if NDEBUG is defined.
        Fixes a compiler warning on sparc-solaris.

        Reported by: Riccardo Mottola <zuse@libero.it>

Members: 
	ChangeLog:1.1867->1.1868 
	libraries/clib/net/PlainDatagramSocketImpl.c:1.37->1.38 
	libraries/clib/net/PlainSocketImpl.c:1.36->1.37 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1867 kaffe/ChangeLog:1.1868
--- kaffe/ChangeLog:1.1867	Tue Jan  6 16:27:51 2004
+++ kaffe/ChangeLog	Tue Jan  6 20:13:09 2004
@@ -1,3 +1,12 @@
+2004-01-06  Dalibor Topic <robilad@kaffe.org>
+
+	* libraries/clib/net/PlainDatagramSocketImpl.c,
+	libraries/clib/net/PlainSocketImpl.c
+	(ip2str, ip62str) Don't define if NDEBUG is defined.
+	Fixes a compiler warning on sparc-solaris.
+
+	Reported by: Riccardo Mottola <zuse@libero.it>
+
 2004-01-06  Ito Kazumitsu  <kaz@maczuka.gcd.org>
 
 	* libraries/javalib/kaffe/io/ConverterAlias.java:
Index: kaffe/libraries/clib/net/PlainDatagramSocketImpl.c
diff -u kaffe/libraries/clib/net/PlainDatagramSocketImpl.c:1.37 kaffe/libraries/clib/net/PlainDatagramSocketImpl.c:1.38
--- kaffe/libraries/clib/net/PlainDatagramSocketImpl.c:1.37	Fri Dec 19 19:05:46 2003
+++ kaffe/libraries/clib/net/PlainDatagramSocketImpl.c	Tue Jan  6 20:13:11 2004
@@ -56,7 +56,7 @@
 #endif
   };
 
-#ifdef KAFFE_VMDEBUG
+#if defined(KAFFE_VMDEBUG) && !defined(NDEBUG)
 /* Generate a string for an inet addr (in host form). */
 static char *
 ip2str(jint addr) 
Index: kaffe/libraries/clib/net/PlainSocketImpl.c
diff -u kaffe/libraries/clib/net/PlainSocketImpl.c:1.36 kaffe/libraries/clib/net/PlainSocketImpl.c:1.37
--- kaffe/libraries/clib/net/PlainSocketImpl.c:1.36	Tue Nov  4 20:42:41 2003
+++ kaffe/libraries/clib/net/PlainSocketImpl.c	Tue Jan  6 20:13:11 2004
@@ -60,7 +60,7 @@
 #endif
   };
 
-#ifdef KAFFE_VMDEBUG
+#if defined(KAFFE_VMDEBUG) && !defined(NDEBUG)
 /*
  * Option names (for debugging only)
  */