[kaffe] CVS kaffe (jim): Change casts to avoid type punning warnings in gcc 3.x
Kaffe CVS
Kaffe Mailing List <kaffe@kaffe.org>
Mon Sep 1 13:39:02 2003
PatchSet 4009
Date: 2003/09/01 20:28:00
Author: jim
Branch: HEAD
Tag: (none)
Log:
Change casts to avoid type punning warnings in gcc 3.x
Members:
ChangeLog:1.1605->1.1606
kaffe/kaffevm/jni.c:1.92->1.93
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1605 kaffe/ChangeLog:1.1606
--- kaffe/ChangeLog:1.1605 Mon Sep 1 19:34:50 2003
+++ kaffe/ChangeLog Mon Sep 1 20:28:00 2003
@@ -1,5 +1,10 @@
2003-09-01 Jim Pick <jim@kaffe.org>
+ * kaffe/kaffevm/jni.c:
+ Change casts to avoid "type punning" warnings in gcc 3.x.
+
+2003-09-01 Jim Pick <jim@kaffe.org>
+
* include/kaffe/jmalloc.h:
Avoid KFREE() related "type punning" warnings in gcc 3.x
when compiling using --with-vmdebug.
@@ -655,7 +660,7 @@
* libraries/javalib/Makefile.am, libraries/javalib/Makefile.in:
regenerated.
-2003-08-04 Jim Pick <jim@kaffe.org>
+2003-08-24 Jim Pick <jim@kaffe.org>
* include/kaffe/.cvsignore,
kaffe/jvmpi/.cvsignore,
Index: kaffe/kaffe/kaffevm/jni.c
diff -u kaffe/kaffe/kaffevm/jni.c:1.92 kaffe/kaffe/kaffevm/jni.c:1.93
--- kaffe/kaffe/kaffevm/jni.c:1.92 Sat Aug 30 23:57:11 2003
+++ kaffe/kaffe/kaffevm/jni.c Mon Sep 1 20:28:02 2003
@@ -138,7 +138,7 @@
(struct Hkaffe_util_Ptr*)ebuf.prev; \
return X; \
} \
- unhand(getCurrentThread())->exceptPtr = (struct Hkaffe_util_Ptr*)&ebuf
+ unhand(getCurrentThread())->exceptPtr = (void *) &ebuf
#define BEGIN_EXCEPTION_HANDLING_VOID() \
VmExceptHandler ebuf; \
@@ -149,10 +149,10 @@
(struct Hkaffe_util_Ptr*)ebuf.prev; \
return; \
} \
- unhand(getCurrentThread())->exceptPtr = (struct Hkaffe_util_Ptr*)&ebuf
+ unhand(getCurrentThread())->exceptPtr = (void *) &ebuf
#define END_EXCEPTION_HANDLING() \
- unhand(getCurrentThread())->exceptPtr = (struct Hkaffe_util_Ptr*)ebuf.prev
+ unhand(getCurrentThread())->exceptPtr = (void *) ebuf.prev
/*
* Get and set fields.