Index: libraries/clib/io/File.c =================================================================== RCS file: /cvs/kaffe/kaffe/libraries/clib/io/File.c,v retrieving revision 1.21 diff -u -r1.21 File.c --- libraries/clib/io/File.c 31 Aug 2003 17:16:49 -0000 1.21 +++ libraries/clib/io/File.c 13 Apr 2004 09:38:21 -0000 @@ -32,7 +32,7 @@ /* * Is named item a file? */ -jboolean java_io_File_isFileInternal(struct Hjava_io_File* this, +jboolean java_io_File_isFileInternal(struct Hjava_io_File* this UNUSED, struct Hjava_lang_String* fileName) { struct stat buf; @@ -53,7 +53,7 @@ /* * Is named item a directory? */ -jboolean java_io_File_isDirectoryInternal(struct Hjava_io_File* this, +jboolean java_io_File_isDirectoryInternal(struct Hjava_io_File* this UNUSED, struct Hjava_lang_String* fileName) { struct stat buf; @@ -74,7 +74,7 @@ /* * Does named file exist? */ -jboolean java_io_File_existsInternal(struct Hjava_io_File* this, +jboolean java_io_File_existsInternal(struct Hjava_io_File* this UNUSED, struct Hjava_lang_String* fileName) { struct stat buf; @@ -89,7 +89,7 @@ /* * Last modified time on file. */ -jlong java_io_File_lastModifiedInternal(struct Hjava_io_File* this, +jlong java_io_File_lastModifiedInternal(struct Hjava_io_File* this UNUSED, struct Hjava_lang_String* fileName) { struct stat buf; @@ -109,7 +109,7 @@ * Can I write to this file? */ jboolean -java_io_File_canWriteInternal(struct Hjava_io_File* this, +java_io_File_canWriteInternal(struct Hjava_io_File* this UNUSED, struct Hjava_lang_String* fileName) { char str[MAXPATHLEN]; @@ -124,7 +124,7 @@ /* * Can I read from this file. */ -jboolean java_io_File_canReadInternal(struct Hjava_io_File* this, +jboolean java_io_File_canReadInternal(struct Hjava_io_File* this UNUSED, struct Hjava_lang_String* fileName) { char str[MAXPATHLEN]; @@ -139,7 +139,7 @@ /* * Return length of file. */ -jlong java_io_File_lengthInternal(struct Hjava_io_File* this, +jlong java_io_File_lengthInternal(struct Hjava_io_File* this UNUSED, struct Hjava_lang_String* fileName) { struct stat buf; @@ -158,7 +158,7 @@ /* * Create a directory. */ -jboolean java_io_File_mkdirInternal(struct Hjava_io_File* this, +jboolean java_io_File_mkdirInternal(struct Hjava_io_File* this UNUSED, struct Hjava_lang_String* fileName) { char str[MAXPATHLEN]; @@ -172,7 +172,7 @@ /* * Rename a file. */ -jboolean java_io_File_renameToInternal(struct Hjava_io_File* this, +jboolean java_io_File_renameToInternal(struct Hjava_io_File* this UNUSED, struct Hjava_lang_String* fromName, struct Hjava_lang_String* toName) { @@ -208,7 +208,7 @@ /* * Get a directory listing. */ -HArrayOfObject* java_io_File_listInternal(struct Hjava_io_File* this, +HArrayOfObject* java_io_File_listInternal(struct Hjava_io_File* this UNUSED, struct Hjava_lang_String* dirName) { #if defined(HAVE_DIRENT_H) @@ -313,7 +313,7 @@ return 1; } -jboolean java_io_File_setLastModifiedInternal(struct Hjava_io_File* this, +jboolean java_io_File_setLastModifiedInternal(struct Hjava_io_File* this UNUSED, struct Hjava_lang_String* fileName, jlong thetime) { @@ -334,7 +334,7 @@ #endif } -jboolean java_io_File_setReadOnlyInternal(struct Hjava_io_File* this, +jboolean java_io_File_setReadOnlyInternal(struct Hjava_io_File* this UNUSED, struct Hjava_lang_String* fileName) { struct stat buf; Index: libraries/clib/management/Debug.c =================================================================== RCS file: /cvs/kaffe/kaffe/libraries/clib/management/Debug.c,v retrieving revision 1.3 diff -u -r1.3 Debug.c --- libraries/clib/management/Debug.c 11 Feb 2000 11:13:53 -0000 1.3 +++ libraries/clib/management/Debug.c 13 Apr 2004 09:38:21 -0000 @@ -7,7 +7,7 @@ void Java_kaffe_management_Debug_enable - (JNIEnv *env, jclass thisClass, jobject list) + (JNIEnv *env, jclass thisClass UNUSED, jobject list) { const char *real_list = (*env)->GetStringUTFChars(env, list, 0); /* do we always have alloca? */ @@ -21,28 +21,28 @@ void Java_kaffe_management_Debug_setVerboseGC - (JNIEnv *env, jclass thisClass, jint level) + (JNIEnv *env UNUSED, jclass thisClass UNUSED, jint level) { Kaffe_JavaVMArgs[0].enableVerboseGC = level; } void Java_kaffe_management_Debug_setVerboseJIT - (JNIEnv *env, jclass thisClass, jboolean on) + (JNIEnv *env UNUSED, jclass thisClass UNUSED, jboolean on) { Kaffe_JavaVMArgs[0].enableVerboseJIT = on; } void Java_kaffe_management_Debug_setTracing - (JNIEnv *env, jclass thisClass, jint level) + (JNIEnv *env UNUSED, jclass thisClass UNUSED, jint level) { Kaffe_JavaVMArgs[0].enableVerboseCall = level; } void Java_kaffe_management_Debug_enableStats - (JNIEnv *env, jclass thisClass, jobject list) + (JNIEnv *env, jclass thisClass UNUSED, jobject list) { #ifdef KAFFE_STATS static char *curStats; /* kaffe expects this string to be Index: libraries/clib/management/JIT.c =================================================================== RCS file: /cvs/kaffe/kaffe/libraries/clib/management/JIT.c,v retrieving revision 1.4 diff -u -r1.4 JIT.c --- libraries/clib/management/JIT.c 28 Jul 2003 16:03:43 -0000 1.4 +++ libraries/clib/management/JIT.c 13 Apr 2004 09:38:21 -0000 @@ -39,7 +39,7 @@ * Translate a method given class, method name, and signature */ void -Java_kaffe_management_JIT_translateMethod(JNIEnv *env, jclass _vmclass, +Java_kaffe_management_JIT_translateMethod(JNIEnv *env UNUSED, jclass _vmclass UNUSED, jstring _cname, jstring _mname, jstring _signature, jobject loader) /* JNI? what's that? */ @@ -90,7 +90,7 @@ * Flush the dcache */ void -Java_kaffe_management_JIT_flushCache(JNIEnv *env, jclass clazz) +Java_kaffe_management_JIT_flushCache(JNIEnv *env UNUSED, jclass clazz UNUSED) { #if defined(TRANSLATOR) #if defined(FULL_CACHE_FLUSH) Index: libraries/clib/management/XProfiler.c =================================================================== RCS file: /cvs/kaffe/kaffe/libraries/clib/management/XProfiler.c,v retrieving revision 1.1 diff -u -r1.1 XProfiler.c --- libraries/clib/management/XProfiler.c 23 May 2000 17:55:37 -0000 1.1 +++ libraries/clib/management/XProfiler.c 13 Apr 2004 09:38:21 -0000 @@ -20,21 +20,21 @@ #include "../../../kaffe/kaffevm/stringSupport.h" #include -void Java_kaffe_management_XProfiler_on(JNIEnv *env, jclass clazz) +void Java_kaffe_management_XProfiler_on(JNIEnv *env UNUSED, jclass clazz UNUSED) { #if defined(KAFFE_XPROFILER) xProfilingOn(); #endif } -void Java_kaffe_management_XProfiler_off(JNIEnv *env, jclass clazz) +void Java_kaffe_management_XProfiler_off(JNIEnv *env UNUSED, jclass clazz UNUSED) { #if defined(KAFFE_XPROFILER) xProfilingOff(); #endif } -void Java_kaffe_management_XProfiler_stage(JNIEnv *env, jclass clazz, +void Java_kaffe_management_XProfiler_stage(JNIEnv *env UNUSED, jclass clazz UNUSED, jstring _stage_name) { #if defined(KAFFE_XPROFILER) Index: libraries/clib/native/ByteToCharIconv.c =================================================================== RCS file: /cvs/kaffe/kaffe/libraries/clib/native/ByteToCharIconv.c,v retrieving revision 1.9 diff -u -r1.9 ByteToCharIconv.c --- libraries/clib/native/ByteToCharIconv.c 24 Mar 2004 19:26:32 -0000 1.9 +++ libraries/clib/native/ByteToCharIconv.c 13 Apr 2004 09:38:22 -0000 @@ -60,7 +60,7 @@ } void -Java_kaffe_io_ByteToCharIconv_close0 (JNIEnv* env, jobject r, jobject cd) +Java_kaffe_io_ByteToCharIconv_close0 (JNIEnv* env UNUSED, jobject r UNUSED, jobject cd) { #if defined(HAVE_ICONV) iconv_close ((iconv_t)cd); Index: libraries/clib/native/CharToByteIconv.c =================================================================== RCS file: /cvs/kaffe/kaffe/libraries/clib/native/CharToByteIconv.c,v retrieving revision 1.7 diff -u -r1.7 CharToByteIconv.c --- libraries/clib/native/CharToByteIconv.c 24 Mar 2004 19:26:32 -0000 1.7 +++ libraries/clib/native/CharToByteIconv.c 13 Apr 2004 09:38:22 -0000 @@ -58,7 +58,7 @@ } void -Java_kaffe_io_CharToByteIconv_close0 (JNIEnv* env, jobject r, jobject cd) +Java_kaffe_io_CharToByteIconv_close0 (JNIEnv* env UNUSED, jobject r UNUSED, jobject cd) { #if defined(HAVE_ICONV) iconv_close ((iconv_t)cd); Index: libraries/clib/native/Compiler.c =================================================================== RCS file: /cvs/kaffe/kaffe/libraries/clib/native/Compiler.c,v retrieving revision 1.5 diff -u -r1.5 Compiler.c --- libraries/clib/native/Compiler.c 26 Mar 2004 22:58:44 -0000 1.5 +++ libraries/clib/native/Compiler.c 13 Apr 2004 09:38:22 -0000 @@ -23,19 +23,19 @@ } jbool -java_lang_Compiler_compileClass(struct Hjava_lang_Class* class) +java_lang_Compiler_compileClass(struct Hjava_lang_Class* class UNUSED) { unimp("java.lang.Compiler:compilerClass unimplemented"); } jbool -java_lang_Compiler_compileClasses(struct Hjava_lang_String* str) +java_lang_Compiler_compileClasses(struct Hjava_lang_String* str UNUSED) { unimp("java.lang.Compiler:compileClasses unimplemented"); } struct Hjava_lang_Object* -java_lang_Compiler_command(struct Hjava_lang_Object* obj) +java_lang_Compiler_command(struct Hjava_lang_Object* obj UNUSED) { unimp("java.lang.Compiler:command unimplemented"); } Index: libraries/clib/native/MemoryAdvice.c =================================================================== RCS file: /cvs/kaffe/kaffe/libraries/clib/native/MemoryAdvice.c,v retrieving revision 1.2 diff -u -r1.2 MemoryAdvice.c --- libraries/clib/native/MemoryAdvice.c 19 Jan 2000 10:59:20 -0000 1.2 +++ libraries/clib/native/MemoryAdvice.c 13 Apr 2004 09:38:22 -0000 @@ -16,7 +16,7 @@ #include "../../../kaffe/kaffevm/gc.h" void -Java_kaffe_lang_MemoryAdvice_register0(JNIEnv* env, jobject this) +Java_kaffe_lang_MemoryAdvice_register0(JNIEnv* env UNUSED, jobject this UNUSED) { /* Not implemented in Desktop edition yet */ } Index: libraries/clib/native/PrimordialClassLoader.c =================================================================== RCS file: /cvs/kaffe/kaffe/libraries/clib/native/PrimordialClassLoader.c,v retrieving revision 1.1 diff -u -r1.1 PrimordialClassLoader.c --- libraries/clib/native/PrimordialClassLoader.c 24 May 2003 20:09:04 -0000 1.1 +++ libraries/clib/native/PrimordialClassLoader.c 13 Apr 2004 09:38:22 -0000 @@ -32,7 +32,7 @@ * Load a system class. */ struct Hjava_lang_Class* -kaffe_lang_PrimordialClassLoader_findClass0(Hkaffe_lang_PrimordialClassLoader* this, Hjava_lang_String* jStr) +kaffe_lang_PrimordialClassLoader_findClass0(Hkaffe_lang_PrimordialClassLoader* this UNUSED, Hjava_lang_String* jStr) { Hjava_lang_Class *clazz = 0; errorInfo info; Index: libraries/clib/native/Runtime.c =================================================================== RCS file: /cvs/kaffe/kaffe/libraries/clib/native/Runtime.c,v retrieving revision 1.21 diff -u -r1.21 Runtime.c --- libraries/clib/native/Runtime.c 13 Sep 2003 12:30:47 -0000 1.21 +++ libraries/clib/native/Runtime.c 13 Apr 2004 09:38:22 -0000 @@ -31,7 +31,7 @@ * Exit this VM */ void -java_lang_Runtime_exit0(struct Hjava_lang_Runtime* r, jint v) +java_lang_Runtime_exit0(struct Hjava_lang_Runtime* r UNUSED, jint v) { EXIT (v); } @@ -40,7 +40,7 @@ * Exec another program. */ struct Hjava_lang_Process* -java_lang_Runtime_execInternal(struct Hjava_lang_Runtime* this, +java_lang_Runtime_execInternal(struct Hjava_lang_Runtime* this UNUSED, HArrayOfObject* argv, HArrayOfObject* arge, Hjava_io_File* dir) { return (struct Hjava_lang_Process*)execute_java_constructor( @@ -53,7 +53,7 @@ * Free memory. */ jlong -java_lang_Runtime_freeMemory(struct Hjava_lang_Runtime* this) +java_lang_Runtime_freeMemory(struct Hjava_lang_Runtime* this UNUSED) { /* This is a particularly inaccurate guess - it's basically how * much more memory we can claim from the heap, and ignores any @@ -67,7 +67,7 @@ * Maximally available memory. */ jlong -java_lang_Runtime_maxMemory(struct Hjava_lang_Runtime* this) +java_lang_Runtime_maxMemory(struct Hjava_lang_Runtime* this UNUSED) { return (gc_heap_limit); } @@ -76,7 +76,7 @@ * Total memory. */ jlong -java_lang_Runtime_totalMemory(struct Hjava_lang_Runtime* this) +java_lang_Runtime_totalMemory(struct Hjava_lang_Runtime* this UNUSED) { return (gc_heap_total); } @@ -85,7 +85,7 @@ * Run the garbage collector. */ void -java_lang_Runtime_gc(struct Hjava_lang_Runtime* this) +java_lang_Runtime_gc(struct Hjava_lang_Runtime* this UNUSED) { invokeGC(); } @@ -95,7 +95,7 @@ * Finalising is part of the garbage collection system - so just run that. */ void -java_lang_Runtime_runFinalization(struct Hjava_lang_Runtime* this) +java_lang_Runtime_runFinalization(struct Hjava_lang_Runtime* this UNUSED) { invokeGC(); } @@ -104,7 +104,7 @@ * Enable/disable tracing of instructions. */ void -java_lang_Runtime_traceInstructions(struct Hjava_lang_Runtime* this, jboolean on) +java_lang_Runtime_traceInstructions(struct Hjava_lang_Runtime* this UNUSED, jboolean on) { if (on == true) { SignalError("java.lang.RuntimeException", "Cannot trace instructions"); @@ -115,7 +115,7 @@ * Enable/disable tracing of method calls. */ void -java_lang_Runtime_traceMethodCalls(struct Hjava_lang_Runtime* this, jboolean on) +java_lang_Runtime_traceMethodCalls(struct Hjava_lang_Runtime* this UNUSED, jboolean on) { if (on == true) { SignalError("java.lang.RuntimeException", "Cannot trace method calls"); @@ -132,7 +132,7 @@ } jint -Java_sun_misc_VM_getState(JNIEnv* env, jobject vm) +Java_sun_misc_VM_getState(JNIEnv* env UNUSED, jobject vm UNUSED) { return (0); } Index: libraries/clib/native/Thread.c =================================================================== RCS file: /cvs/kaffe/kaffe/libraries/clib/native/Thread.c,v retrieving revision 1.15 diff -u -r1.15 Thread.c --- libraries/clib/native/Thread.c 19 Jan 2000 10:59:20 -0000 1.15 +++ libraries/clib/native/Thread.c 13 Apr 2004 09:38:22 -0000 @@ -74,7 +74,7 @@ * Destroy a thread (it had better be myself!!) */ void -java_lang_Thread_destroy0(struct Hjava_lang_Thread* this) +java_lang_Thread_destroy0(struct Hjava_lang_Thread* this UNUSED) { exitThread(); }