[kaffe] CVS kaffe (dalibor): Fixed remaining foo is not defined warnings
Kaffe CVS
Kaffe Mailing List <kaffe@kaffe.org>
Wed Mar 24 15:42:03 2004
PatchSet 4577
Date: 2004/03/24 22:54:50
Author: dalibor
Branch: HEAD
Tag: (none)
Log:
Fixed remaining foo is not defined warnings
2004-03-24 Dalibor Topic <robilad@kaffe.org>
* kaffe/kaffevm/support.c,
libraries/clib/net/PlainSocketImpl.c:
Fixed remaining 'foo' is not defined warnings.
Members:
ChangeLog:1.2155->1.2156
kaffe/kaffevm/support.c:1.62->1.63
libraries/clib/net/PlainSocketImpl.c:1.39->1.40
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2155 kaffe/ChangeLog:1.2156
--- kaffe/ChangeLog:1.2155 Wed Mar 24 21:44:32 2004
+++ kaffe/ChangeLog Wed Mar 24 22:54:50 2004
@@ -1,5 +1,11 @@
2004-03-24 Dalibor Topic <robilad@kaffe.org>
+ * kaffe/kaffevm/support.c,
+ libraries/clib/net/PlainSocketImpl.c:
+ Fixed remaining 'foo' is not defined warnings.
+
+2004-03-24 Dalibor Topic <robilad@kaffe.org>
+
* kaffe/kaffevm/systems/unix-pthreads/thread-internal.h
(jthread_attach_current_thread): Renamed daemon to is_daemon
to fix compiler warnings.
Index: kaffe/kaffe/kaffevm/support.c
diff -u kaffe/kaffe/kaffevm/support.c:1.62 kaffe/kaffe/kaffevm/support.c:1.63
--- kaffe/kaffe/kaffevm/support.c:1.62 Sun Feb 1 22:14:53 2004
+++ kaffe/kaffe/kaffevm/support.c Wed Mar 24 22:54:51 2004
@@ -356,7 +356,7 @@
to be promoted to jlong, and all jfloats to be promoted to jdouble,
unless explicitly overridden. It implies NO_HOLES, unless
explicitly defined otherwise. */
-#if PROMOTE_TO_64bits
+#if defined(PROMOTE_TO_64bits)
# ifndef PROMOTE_jint2jlong
# define PROMOTE_jint2jlong 1
# endif
@@ -373,7 +373,7 @@
/* If PROMOTE_jint2jlong is enabled, all integer values are to be
passed as jlongs. It is only set by PROMOTE_TO_64bits. */
-#if PROMOTE_jint2jlong
+#if defined(PROMOTE_jint2jlong)
# define PROM_i j
#else
# define PROM_i i
@@ -384,7 +384,7 @@
be marked as 'D'. No known port uses this. In fact, alpha must
explicitly set it to 0, to prevent PROMOTE_TO_64bits from enabling
it. */
-#if PROMOTE_jfloat2jdouble
+#if defined(PROMOTE_jfloat2jdouble)
# define PROM_f d
#else
# define PROM_f f
@@ -394,8 +394,8 @@
and jdoubles to be forced into even arguments, by introducing a
padding integer argument. The argument DO is used to adjust the
input argument list. */
-#if ALIGN_AT_64bits
-# if NO_HOLES
+#if defined(ALIGN_AT_64bits)
+# if defined(NO_HOLES)
# error "ALIGN_AT_64bits is incompatible with NO_HOLES"
# endif
# define ENSURE_ALIGN64(DO) do { \
Index: kaffe/libraries/clib/net/PlainSocketImpl.c
diff -u kaffe/libraries/clib/net/PlainSocketImpl.c:1.39 kaffe/libraries/clib/net/PlainSocketImpl.c:1.40
--- kaffe/libraries/clib/net/PlainSocketImpl.c:1.39 Sun Jan 25 21:13:11 2004
+++ kaffe/libraries/clib/net/PlainSocketImpl.c Wed Mar 24 22:54:52 2004
@@ -434,7 +434,7 @@
sizeof(addr.sin_addr));
break;
-#if notnow && defined(AF_INET6)
+#if defined(notnow) && defined(AF_INET6)
case AF_INET6:
remote_addr = (HArrayOfByte *)newArray(TYPE_CLASS(TYPE_Byte),
sizeof(in6->sin6_addr));