diff options
author | Mark Wielaard <mark@klomp.org> | 2004-10-26 20:26:03 +0000 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2004-10-26 20:26:03 +0000 |
commit | 75c2a99d73ec6542aa3eceb7e3bbcb20b680aa81 (patch) | |
tree | efa97a2786a29b56508530fd215b336e055a8c59 /native/jni/java-util/java_util_VMTimeZone.c | |
parent | 680f2e95a4e3755985b93f318541c91842f5a9b8 (diff) | |
download | classpath-75c2a99d73ec6542aa3eceb7e3bbcb20b680aa81.tar.gz |
* configure.ac (CLASSPATH_MODULE): Add -no-undefined.
(Werror): New configure flag.
(gtk-peer): Remove comma from help string.
(AM_CFLAGS): Replace by...
(WARNING_CFLAGS, STRICT_WARNING_CFLAGS, ERROR_CFLAGS): New gcc flags.
(AM_CPPFLAGS): Replace by...
(CLASSPATH_INCLUDES): New -I gcc flags.
* native/fdlibm/Makefile.am: Use new AM_LDFLAGS, AM_CPPFLAGS and
AM_CFLAGS when not library specific flags are used.
* native/jni/gtk-peer/Makefile.am: Likewise.
* native/jni/java-io/Makefile.am: Likewise.
* native/jni/java-lang/Makefile.am: Likewise.
* native/jni/java-net/Makefile.am: Likewise.
* native/jni/java-nio/Makefile.am: Likewise.
* native/jni/java-util/Makefile.am: Likewise.
* native/jni/java-io/java_io_ObjectInputStream.c: Mark function
arguments unused where necessary.
* native/jni/java-io/java_io_VMFile.c: Likewise.
* native/jni/java-io/java_io_VMObjectStreamClass.c: Likewise.
(getFieldReference): Make sure we allocate the_type ourselves if we
free it later. Removed unused argument object.
* native/jni/java-io/javaio.c (javaio_read): Removed unused argument
obj.
(javaio_write): Likewise.
* native/jni/java-io/javaio.h: Mark function arguments unused where
necessary.
* native/jni/java-lang/java_lang_Double.c: Likewise.
(Java_java_lang_Double_parseDouble): Declare buf as const char*.
* native/jni/java-lang/java_lang_Math.c: Mark function arguments
unused where necessary.
* native/jni/java-lang/java_lang_VMDouble.c: Likewise.
* native/jni/java-lang/java_lang_VMFloat.c: Likewise.
* native/jni/java-lang/java_lang_VMSystem.c: Likewise.
* native/jni/java-lang/java_lang_reflect_Array.c: Likewise.
* native/jni/java-net/gnu_java_net_PlainDatagramSocketImpl.c
(Java_gnu_java_net_PlainDatagramSocketImpl_receive0): Mark only
maxlen and offset as unsigned.
* native/jni/java-net/java_net_InetAddress.c: Mark function arguments
unused where necessary.
(Java_java_net_InetAddress_getHostByName): New local int variable
max_addresses.
* native/jni/java-net/java_net_NetworkInterface.c: Mark function
arguments unused where necessary.
* native/jni/java-net/javanet.c (_javanet_set_int_field): Removed
unused argument class.
(_javanet_accept): Check result variable after it has been assigned.
* native/jni/java-nio/gnu_java_nio_NIOServerSocket.c: Mark function
arguments unused where necessary.
* native/jni/java-nio/gnu_java_nio_VMPipe.c: Likewise.
* native/jni/java-nio/gnu_java_nio_VMSelector.c: Likewise.
* native/jni/java-nio/gnu_java_nio_VMSelector.c: Likewise.
* native/jni/java-nio/gnu_java_nio_channels_FileChannelImpl.c:
Likewise.
* native/jni/java-nio/java_nio_DirectByteBufferImpl.c: Likewise.
* native/jni/java-nio/java_nio_MappedByteBufferImpl.c: Likewise.
* native/jni/java-nio/java_nio_channels_Channels.c: Likewise.
* native/jni/java-util/java_util_VMTimeZone.c (jint_to_charbuf):
Mark as static function.
(Java_java_util_VMTimeZone_getSystemTimeZoneId): Mark clazz argument
as unused. Cast _timezone to long before use.
* native/target/generic/target_generic_network.h: Remove asserts.
Diffstat (limited to 'native/jni/java-util/java_util_VMTimeZone.c')
-rw-r--r-- | native/jni/java-util/java_util_VMTimeZone.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/native/jni/java-util/java_util_VMTimeZone.c b/native/jni/java-util/java_util_VMTimeZone.c index 536f7bfef..b1e1f0301 100644 --- a/native/jni/java-util/java_util_VMTimeZone.c +++ b/native/jni/java-util/java_util_VMTimeZone.c @@ -56,7 +56,7 @@ exception statement from your version. */ #include "java_util_VMTimeZone.h" -size_t jint_to_charbuf (char* bufend, jint num); +static size_t jint_to_charbuf (char* bufend, jint num); /** * This method returns a time zone id string which is in the form @@ -75,7 +75,9 @@ size_t jint_to_charbuf (char* bufend, jint num); * TimeZone object. */ JNIEXPORT jstring JNICALL -Java_java_util_VMTimeZone_getSystemTimeZoneId(JNIEnv *env, jclass clazz) +Java_java_util_VMTimeZone_getSystemTimeZoneId(JNIEnv *env, + jclass clazz + __attribute__ ((__unused__))) { struct tm tim; #ifndef HAVE_LOCALTIME_R @@ -147,7 +149,8 @@ Java_java_util_VMTimeZone_getSystemTimeZoneId(JNIEnv *env, jclass clazz) to get GMT. */ tzoffset = -1L * tim.tm_gmtoff; #elif HAVE_UNDERSCORE_TIMEZONE - tzoffset = _timezone; + /* On some systems _timezone is actually defined as time_t. */ + tzoffset = (long) _timezone; #elif HAVE_TIMEZONE /* timezone is secs WEST of UTC. */ tzoffset = timezone; |