fix build for GCC 4.3

Note that this requires removing the -Wconversion flag for now.  I'll
see about restoring it when I'm ready to tackle all those warnings.
This commit is contained in:
Joel Dice 2008-03-10 13:49:10 -06:00
parent 6fa847518c
commit a388ca19ee
3 changed files with 3 additions and 4 deletions

View File

@ -52,8 +52,7 @@ strip-all = --strip-all
rdynamic = -rdynamic
warnings = -Wall -Wextra -Werror -Wunused-parameter \
-Winit-self -Wconversion
warnings = -Wall -Wextra -Werror -Wunused-parameter -Winit-self
common-cflags = $(warnings) -fno-rtti -fno-exceptions \
-I$(JAVA_HOME)/include -idirafter $(src) -I$(native-build) \

View File

@ -78,7 +78,7 @@ set(void** o, void* value)
{
*o = reinterpret_cast<void*>
(reinterpret_cast<uintptr_t>(value)
| reinterpret_cast<uintptr_t>(*o) & (~PointerMask));
| (reinterpret_cast<uintptr_t>(*o) & (~PointerMask)));
}
inline void

View File

@ -1484,7 +1484,7 @@ setObjectClass(Thread*, object o, object value)
cast<object>(o, 0)
= reinterpret_cast<object>
(reinterpret_cast<uintptr_t>(value)
| reinterpret_cast<uintptr_t>(cast<object>(o, 0)) & (~PointerMask));
| (reinterpret_cast<uintptr_t>(cast<object>(o, 0)) & (~PointerMask)));
}
object&