[kaffe] CVS kaffe (robilad): Fixes for unused paramter warnings
Kaffe CVS
cvs-commits at kaffe.org
Sat Aug 13 16:45:23 PDT 2005
PatchSet 6824
Date: 2005/08/13 23:37:16
Author: robilad
Branch: HEAD
Tag: (none)
Log:
Fixes for unused paramter warnings
2005-08-12 Andreas Tobler <a.tobler at schweiz.ch>
* libraries/clib/math/BigInteger.c: Mark unused variables UNUSED.
* libraries/clib/native/Class.c (java_lang_VMClass_getModifiers): Mark
ignoreInnerClassAttribute UNUSED.
* libraries/clib/awt/classpath-gtk/gtk-peer/jawt.c (JAWT_GetAWT): Mark
env UNUSED.
(JNICALL _Jv_Lock): Mark surface UNUSED.
(JNICALL _Jv_Unlock): Likewise.
(JNICALL _Jv_JAWT_Lock): Mark env UNUSED.
(JNICALL _Jv_JAWT_Unlock): Likewise.
* kaffe/kaffevm/systems/unix-pthreads/thread-impl.c (tDumpList): Cast
t->tid to avoid compiler warning.
(dump_signal_handler): Reordered attribute.
(tWatchdogRun): Mark p UNUSED.
(jthread_init): Reordered attribute.
(jthread_createfirst): Likewise.
(suspend_signal_handler): Likewise.
(resume_signal_handler): Likewise.
(jthread_suspendall): Cast type to avoid warning.
(jthread_spinon): Reordered attribute.
(jthread_spinoff): Likewise.
(jthread_stop): Likewise.
(jthread_dumpthreadinfo): Likewise.
(jthread_has_run): Mark jt UNUSED.
(jthread_clear_run): Reordered attribute.
(jthread_suspend): Likewise.
(jthread_resume): Likewise.
(jthread_from_data): Likewise.
(jthread_get_usage): Likewise.
* kaffe/kaffevm/jni/jni.c (Kaffe_GetVersion): Reordered attribute.
(Kaffe_DefineClass): Mark *name UNUSED.
(Kaffe_FindClass): Reordered attribute.
* kaffe/kaffevm/jni/jni-refs.c (KaffeJNI_NewLocalRef): Mark *env UNUSED.
(KaffeJNI_NewWeakGlobalRef): Likewise.
(KaffeJNI_DeleteWeakGlobalRef): Likewise.
* kaffe/kaffevm/locks.c (KaffeLock_destroyLock): Mark *gcif UNUSED.
Members:
ChangeLog:1.4348->1.4349
kaffe/kaffevm/locks.c:1.64->1.65
kaffe/kaffevm/jni/jni-refs.c:1.3->1.4
kaffe/kaffevm/jni/jni.c:1.37->1.38
kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:1.86->1.87
libraries/clib/awt/classpath-gtk/gtk-peer/jawt.c:1.2->1.3
libraries/clib/math/BigInteger.c:1.26->1.27
libraries/clib/native/Class.c:1.85->1.86
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4348 kaffe/ChangeLog:1.4349
--- kaffe/ChangeLog:1.4348 Sat Aug 13 22:48:43 2005
+++ kaffe/ChangeLog Sat Aug 13 23:37:16 2005
@@ -1,3 +1,47 @@
+2005-08-12 Andreas Tobler <a.tobler at schweiz.ch>
+
+ * libraries/clib/math/BigInteger.c: Mark unused variables UNUSED.
+
+ * libraries/clib/native/Class.c (java_lang_VMClass_getModifiers): Mark
+ ignoreInnerClassAttribute UNUSED.
+
+ * libraries/clib/awt/classpath-gtk/gtk-peer/jawt.c (JAWT_GetAWT): Mark
+ env UNUSED.
+ (JNICALL _Jv_Lock): Mark surface UNUSED.
+ (JNICALL _Jv_Unlock): Likewise.
+ (JNICALL _Jv_JAWT_Lock): Mark env UNUSED.
+ (JNICALL _Jv_JAWT_Unlock): Likewise.
+
+ * kaffe/kaffevm/systems/unix-pthreads/thread-impl.c (tDumpList): Cast
+ t->tid to avoid compiler warning.
+ (dump_signal_handler): Reordered attribute.
+ (tWatchdogRun): Mark p UNUSED.
+ (jthread_init): Reordered attribute.
+ (jthread_createfirst): Likewise.
+ (suspend_signal_handler): Likewise.
+ (resume_signal_handler): Likewise.
+ (jthread_suspendall): Cast type to avoid warning.
+ (jthread_spinon): Reordered attribute.
+ (jthread_spinoff): Likewise.
+ (jthread_stop): Likewise.
+ (jthread_dumpthreadinfo): Likewise.
+ (jthread_has_run): Mark jt UNUSED.
+ (jthread_clear_run): Reordered attribute.
+ (jthread_suspend): Likewise.
+ (jthread_resume): Likewise.
+ (jthread_from_data): Likewise.
+ (jthread_get_usage): Likewise.
+
+ * kaffe/kaffevm/jni/jni.c (Kaffe_GetVersion): Reordered attribute.
+ (Kaffe_DefineClass): Mark *name UNUSED.
+ (Kaffe_FindClass): Reordered attribute.
+
+ * kaffe/kaffevm/jni/jni-refs.c (KaffeJNI_NewLocalRef): Mark *env UNUSED.
+ (KaffeJNI_NewWeakGlobalRef): Likewise.
+ (KaffeJNI_DeleteWeakGlobalRef): Likewise.
+
+ * kaffe/kaffevm/locks.c (KaffeLock_destroyLock): Mark *gcif UNUSED.
+
2005-08-13 Dalibor Topic <robilad at kaffe.org>
* configure.ac: Add -W and -Wextra to warning options.
Index: kaffe/kaffe/kaffevm/locks.c
diff -u kaffe/kaffe/kaffevm/locks.c:1.64 kaffe/kaffe/kaffevm/locks.c:1.65
--- kaffe/kaffe/kaffevm/locks.c:1.64 Sat Aug 6 14:25:14 2005
+++ kaffe/kaffe/kaffevm/locks.c Sat Aug 13 23:37:19 2005
@@ -590,7 +590,7 @@
{
}
-void KaffeLock_destroyLock(Collector *gcif, void *l)
+void KaffeLock_destroyLock(Collector *gcif UNUSED, void *l)
{
iLock *lock = (iLock *)l;
Index: kaffe/kaffe/kaffevm/jni/jni-refs.c
diff -u kaffe/kaffe/kaffevm/jni/jni-refs.c:1.3 kaffe/kaffe/kaffevm/jni/jni-refs.c:1.4
--- kaffe/kaffe/kaffevm/jni/jni-refs.c:1.3 Tue Jul 19 16:27:37 2005
+++ kaffe/kaffe/kaffevm/jni/jni-refs.c Sat Aug 13 23:37:20 2005
@@ -228,7 +228,7 @@
}
jobject
-KaffeJNI_NewLocalRef(JNIEnv* env, jobject ref)
+KaffeJNI_NewLocalRef(JNIEnv *env UNUSED, jobject ref)
{
BEGIN_EXCEPTION_HANDLING(NULL);
@@ -242,7 +242,7 @@
return ref;
}
-jweak KaffeJNI_NewWeakGlobalRef(JNIEnv *env, jobject obj)
+jweak KaffeJNI_NewWeakGlobalRef(JNIEnv *env UNUSED, jobject obj)
{
jweak ref;
BEGIN_EXCEPTION_HANDLING(NULL);
@@ -272,7 +272,7 @@
return ref;
}
-void KaffeJNI_DeleteWeakGlobalRef(JNIEnv *env, jweak ref)
+void KaffeJNI_DeleteWeakGlobalRef(JNIEnv *env UNUSED, jweak ref)
{
jobject obj;
Index: kaffe/kaffe/kaffevm/jni/jni.c
diff -u kaffe/kaffe/kaffevm/jni/jni.c:1.37 kaffe/kaffe/kaffevm/jni/jni.c:1.38
--- kaffe/kaffe/kaffevm/jni/jni.c:1.37 Fri Aug 12 02:37:37 2005
+++ kaffe/kaffe/kaffevm/jni/jni.c Sat Aug 13 23:37:20 2005
@@ -74,7 +74,7 @@
}
static jint
-Kaffe_GetVersion(JNIEnv* UNUSED env)
+Kaffe_GetVersion(JNIEnv* env UNUSED)
{
return Kaffe_JavaVMArgs.version;
}
@@ -89,7 +89,8 @@
}
static jclass
-Kaffe_DefineClass(JNIEnv* env, const char *name, jobject loader, const jbyte* buf, jsize len)
+Kaffe_DefineClass(JNIEnv* env, const char *name UNUSED, jobject loader,
+ const jbyte* buf, jsize len)
{
Hjava_lang_Class* cls;
classFile hand;
@@ -117,7 +118,7 @@
}
static jclass
-Kaffe_FindClass(JNIEnv UNUSED *env, const char* name)
+Kaffe_FindClass(JNIEnv *env UNUSED, const char* name)
{
stackTraceInfo *trace;
Utf8Const* utf8;
Index: kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c
diff -u kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:1.86 kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:1.87
--- kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:1.86 Tue Jul 19 16:27:38 2005
+++ kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c Sat Aug 13 23:37:22 2005
@@ -258,9 +258,8 @@
dprintf("%4d: %c%c%c %c%c%c %p [tid: %4ld, java: %p] "
"stack: [%p..%p..%p]\n",
- i, a1, a2, a3,
- stat_act[t->active], stat_susp[t->suspendState], stat_block[t->blockState],
- t, t->tid, t->data.jlThread,
+ i, a1, a2, a3, stat_act[t->active], stat_susp[t->suspendState],
+ stat_block[t->blockState], t, (long)t->tid, t->data.jlThread,
t->stackMin, t->stackCur, t->stackMax);
}
}
@@ -302,14 +301,14 @@
*/
static
void
-dump_signal_handler ( UNUSED int sig )
+dump_signal_handler (int sig UNUSED)
{
tDump();
}
#ifdef KAFFE_VMDEBUG
static
-void* tWatchdogRun (void* p)
+void* tWatchdogRun (void* p UNUSED)
{
jthread_t t;
int life;
@@ -546,8 +545,8 @@
* alternative to scattered pthread_once() calls
*/
void
-jthread_init(UNUSED int pre,
- int maxpr, int UNUSED minpr,
+jthread_init(int pre UNUSED,
+ int maxpr, int minpr UNUSED,
Collector *thread_collector,
void (*destructor)(void *),
void (*_onstop)(void) UNUSED,
@@ -579,7 +578,8 @@
}
jthread_t
-jthread_createfirst(size_t mainThreadStackSize, UNUSED unsigned int pri, void* jlThread)
+jthread_createfirst(size_t mainThreadStackSize, unsigned int pri UNUSED,
+ void* jlThread)
{
jthread_t nt;
int oldCancelType;
@@ -1292,7 +1292,7 @@
* SA_ONSTACK / signalstack() in effect
*/
void
-suspend_signal_handler ( UNUSED int sig )
+suspend_signal_handler (int sig UNUSED)
{
volatile jthread_t cur = jthread_current();
@@ -1334,7 +1334,7 @@
* call (i.e. to unblock a preceeding sigwait).
*/
void
-resume_signal_handler ( UNUSED int sig )
+resume_signal_handler ( int sig UNUSED )
{
/* we don't do anything, here - all the action is in the suspend handler */
}
@@ -1362,7 +1362,8 @@
protectThreadList(cur);
DBG( JTHREAD, dprintf("enter crit section[%d] from: %p [tid:%4ld, java:%p)\n",
- critSection, cur, cur->tid, cur->data.jlThread));
+ critSection, cur, (unsigned long)cur->tid,
+ cur->data.jlThread));
if ( ++critSection == 1 ){
@@ -1683,7 +1684,7 @@
*
* @param dummy unused pointer
*/
-void jthread_spinon(UNUSED void *dummy)
+void jthread_spinon(void *dummy UNUSED)
{
pthread_mutex_lock(&systemMutex);
}
@@ -1694,7 +1695,7 @@
*
* @param dummy unused pointer
*/
-void jthread_spinoff(UNUSED void *dummy)
+void jthread_spinoff(void *dummy UNUSED)
{
pthread_mutex_unlock(&systemMutex);
}
@@ -1777,7 +1778,7 @@
*
* @param tid the thread to stop.
*/
-void jthread_stop(UNUSED jthread_t tid)
+void jthread_stop(jthread_t tid UNUSED)
{
}
@@ -1786,7 +1787,7 @@
*
* @param tid the thread whose info is to be dumped.
*/
-void jthread_dumpthreadinfo(UNUSED jthread_t tid)
+void jthread_dumpthreadinfo(jthread_t tid UNUSED)
{
}
@@ -1855,26 +1856,26 @@
return jt->status;
}
-int jthread_has_run(jthread_t jt)
+int jthread_has_run(jthread_t jt UNUSED)
{
return 1;
}
-void jthread_clear_run(UNUSED jthread_t jt)
+void jthread_clear_run(jthread_t jt UNUSED)
{
}
-void jthread_suspend(UNUSED jthread_t jt, UNUSED void *suspender)
+void jthread_suspend(jthread_t jt UNUSED, void *suspender UNUSED)
{
/* TODO */
}
-void jthread_resume(UNUSED jthread_t jt, UNUSED void *suspender)
+void jthread_resume(jthread_t jt UNUSED, void *suspender UNUSED)
{
/* TODO */
}
-jthread_t jthread_from_data(threadData *td, UNUSED void *suspender)
+jthread_t jthread_from_data(threadData *td, void *suspender UNUSED)
{
jthread_t cur = jthread_current();
jthread_t iterator;
@@ -1898,9 +1899,8 @@
return NULL;
}
-jlong jthread_get_usage(UNUSED jthread_t jt)
+jlong jthread_get_usage(jthread_t jt UNUSED)
{
/* TODO */
return 0;
}
-
Index: kaffe/libraries/clib/awt/classpath-gtk/gtk-peer/jawt.c
diff -u kaffe/libraries/clib/awt/classpath-gtk/gtk-peer/jawt.c:1.2 kaffe/libraries/clib/awt/classpath-gtk/gtk-peer/jawt.c:1.3
--- kaffe/libraries/clib/awt/classpath-gtk/gtk-peer/jawt.c:1.2 Mon Jul 4 00:04:05 2005
+++ kaffe/libraries/clib/awt/classpath-gtk/gtk-peer/jawt.c Sat Aug 13 23:37:22 2005
@@ -60,7 +60,7 @@
static void (JNICALL _Jv_JAWT_Unlock) (JNIEnv*);
JNIEXPORT jboolean JNICALL
-JAWT_GetAWT (JNIEnv* env, JAWT* awt)
+JAWT_GetAWT (JNIEnv* env UNUSED, JAWT* awt)
{
jint retrieved_version;
@@ -80,14 +80,14 @@
/* JAWT_DrawingSurface functions */
static jint
-(JNICALL _Jv_Lock) (JAWT_DrawingSurface* surface)
+(JNICALL _Jv_Lock) (JAWT_DrawingSurface* surface UNUSED)
{
/* lock the drawing surface */
return classpath_jawt_lock ();
}
static void
-(JNICALL _Jv_Unlock) (JAWT_DrawingSurface* surface)
+(JNICALL _Jv_Unlock) (JAWT_DrawingSurface* surface UNUSED)
{
classpath_jawt_unlock ();
}
@@ -168,13 +168,13 @@
}
static void
-(JNICALL _Jv_JAWT_Lock) (JNIEnv* env)
+(JNICALL _Jv_JAWT_Lock) (JNIEnv* env UNUSED)
{
classpath_jawt_lock ();
}
static void
-(JNICALL _Jv_JAWT_Unlock) (JNIEnv* env)
+(JNICALL _Jv_JAWT_Unlock) (JNIEnv* env UNUSED)
{
classpath_jawt_unlock ();
}
Index: kaffe/libraries/clib/math/BigInteger.c
diff -u kaffe/libraries/clib/math/BigInteger.c:1.26 kaffe/libraries/clib/math/BigInteger.c:1.27
--- kaffe/libraries/clib/math/BigInteger.c:1.26 Thu Aug 11 22:07:53 2005
+++ kaffe/libraries/clib/math/BigInteger.c Sat Aug 13 23:37:22 2005
@@ -224,7 +224,8 @@
}
void
-Java_java_math_BigInteger_divrem0(JNIEnv* env, jclass UNUSED cls, jobject r1, jobject r2, jobject s1, jobject s2)
+Java_java_math_BigInteger_divrem0(JNIEnv* env, jclass cls UNUSED, jobject r1,
+ jobject r2, jobject s1, jobject s2)
{
mpz_ptr res1;
mpz_ptr res2;
@@ -474,7 +475,8 @@
jint
-Java_java_math_BigInteger_cmp0(JNIEnv* env, jclass UNUSED cls, jobject s1, jobject s2)
+Java_java_math_BigInteger_cmp0(JNIEnv* env, jclass cls UNUSED, jobject s1,
+ jobject s2)
{
mpz_srcptr src1;
mpz_srcptr src2;
@@ -565,37 +567,41 @@
/* We should put some dummies in here */
void
-Java_java_math_BigInteger_initialize0(JNIEnv* env, jclass cls)
+Java_java_math_BigInteger_initialize0(JNIEnv* env, jclass cls UNUSED)
{
gmp_not_found(env);
}
void
-Java_java_math_BigInteger_init0(JNIEnv* env, jobject r)
+Java_java_math_BigInteger_init0(JNIEnv* env, jobject r UNUSED)
{
gmp_not_found(env);
}
void
-Java_java_math_BigInteger_finalize0(JNIEnv* env, jobject r)
+Java_java_math_BigInteger_finalize0(JNIEnv* env, jobject r UNUSED)
{
gmp_not_found(env);
}
void
-Java_java_math_BigInteger_assignLong0(JNIEnv* env, jobject r, jlong v)
+Java_java_math_BigInteger_assignLong0(JNIEnv* env, jobject r UNUSED,
+ jlong v UNUSED)
{
gmp_not_found(env);
}
void
-Java_java_math_BigInteger_assignBytes0(JNIEnv* env, jobject r, jint sign, jbyteArray magnitude)
+Java_java_math_BigInteger_assignBytes0(JNIEnv* env, jobject r UNUSED,
+ jint sign UNUSED,
+ jbyteArray magnitude UNUSED)
{
gmp_not_found(env);
}
jint
-Java_java_math_BigInteger_assignString0(JNIEnv* env, jobject r, jstring val, jint radix)
+Java_java_math_BigInteger_assignString0(JNIEnv* env, jobject r UNUSED,
+ jstring val UNUSED, jint radix UNUSED)
{
gmp_not_found(env);
@@ -603,121 +609,140 @@
}
void
-Java_java_math_BigInteger_add0(JNIEnv* env, jobject r, jobject s1, jobject s2)
+Java_java_math_BigInteger_add0(JNIEnv* env, jobject r UNUSED, jobject s1 UNUSED,
+ jobject s2 UNUSED)
{
gmp_not_found(env);
}
void
-Java_java_math_BigInteger_sub0(JNIEnv* env, jobject r, jobject s1, jobject s2)
+Java_java_math_BigInteger_sub0(JNIEnv* env, jobject r UNUSED, jobject s1 UNUSED,
+ jobject s2 UNUSED)
{
gmp_not_found(env);
}
void
-Java_java_math_BigInteger_mul0(JNIEnv* env, jobject r, jobject s1, jobject s2)
+Java_java_math_BigInteger_mul0(JNIEnv* env, jobject r UNUSED, jobject s1 UNUSED,
+ jobject s2 UNUSED)
{
gmp_not_found(env);
}
void
-Java_java_math_BigInteger_div0(JNIEnv* env, jobject r, jobject s1, jobject s2)
+Java_java_math_BigInteger_div0(JNIEnv* env, jobject r UNUSED, jobject s1 UNUSED,
+ jobject s2 UNUSED)
{
gmp_not_found(env);
}
void
-Java_java_math_BigInteger_rem0(JNIEnv* env, jobject r, jobject s1, jobject s2)
+Java_java_math_BigInteger_rem0(JNIEnv* env, jobject r UNUSED, jobject s1 UNUSED,
+ jobject s2 UNUSED)
{
gmp_not_found(env);
}
void
-Java_java_math_BigInteger_divrem0(JNIEnv* env, jclass cls, jobject r1, jobject r2, jobject s1, jobject s2)
+Java_java_math_BigInteger_divrem0(JNIEnv* env, jclass cls UNUSED,
+ jobject r1 UNUSED, jobject r2 UNUSED,
+ jobject s1 UNUSED, jobject s2 UNUSED)
{
gmp_not_found(env);
}
void
-Java_java_math_BigInteger_abs0(JNIEnv* env, jobject r, jobject s)
+Java_java_math_BigInteger_abs0(JNIEnv* env, jobject r UNUSED, jobject s UNUSED)
{
gmp_not_found(env);
}
void
-Java_java_math_BigInteger_neg0(JNIEnv* env, jobject r, jobject s)
+Java_java_math_BigInteger_neg0(JNIEnv* env, jobject r UNUSED, jobject s UNUSED)
{
gmp_not_found(env);
}
void
-Java_java_math_BigInteger_pow0(JNIEnv* env, jobject r, jobject s, jint power)
+Java_java_math_BigInteger_pow0(JNIEnv* env, jobject r UNUSED, jobject s UNUSED,
+ jint power UNUSED)
{
gmp_not_found(env);
}
void
-Java_java_math_BigInteger_gcd0(JNIEnv* env, jobject r, jobject s1, jobject s2)
+Java_java_math_BigInteger_gcd0(JNIEnv* env, jobject r UNUSED, jobject s1 UNUSED,
+ jobject s2 UNUSED)
{
gmp_not_found(env);
}
void
-Java_java_math_BigInteger_mod0(JNIEnv* env, jobject r, jobject s1, jobject s2)
+Java_java_math_BigInteger_mod0(JNIEnv* env, jobject r UNUSED, jobject s1 UNUSED,
+ jobject s2 UNUSED)
{
gmp_not_found(env);
}
void
-Java_java_math_BigInteger_modpow0(JNIEnv* env, jobject r, jobject s1, jobject s2, jobject s3)
+Java_java_math_BigInteger_modpow0(JNIEnv* env, jobject r UNUSED,
+ jobject s1 UNUSED, jobject s2 UNUSED,
+ jobject s3 UNUSED)
{
gmp_not_found(env);
}
void
-Java_java_math_BigInteger_modinv0(JNIEnv* env, jobject r, jobject s1, jobject s2)
+Java_java_math_BigInteger_modinv0(JNIEnv* env, jobject r UNUSED,
+ jobject s1 UNUSED, jobject s2 UNUSED)
{
gmp_not_found(env);
}
void
-Java_java_math_BigInteger_and0(JNIEnv* env, jobject r, jobject s1, jobject s2)
+Java_java_math_BigInteger_and0(JNIEnv* env, jobject r UNUSED,
+ jobject s1 UNUSED, jobject s2 UNUSED)
{
gmp_not_found(env);
}
void
-Java_java_math_BigInteger_or0(JNIEnv* env, jobject r, jobject s1, jobject s2)
+Java_java_math_BigInteger_or0(JNIEnv* env, jobject r UNUSED, jobject s1 UNUSED,
+ jobject s2 UNUSED)
{
gmp_not_found(env);
}
void
-Java_java_math_BigInteger_xor0(JNIEnv* env, jobject r, jobject s1, jobject s2)
+Java_java_math_BigInteger_xor0(JNIEnv* env, jobject r UNUSED, jobject s1 UNUSED,
+ jobject s2 UNUSED)
{
gmp_not_found(env);
}
void
-Java_java_math_BigInteger_not0(JNIEnv* env, jobject r, jobject s)
+Java_java_math_BigInteger_not0(JNIEnv* env, jobject r UNUSED, jobject s UNUSED)
{
gmp_not_found(env);
}
void
-Java_java_math_BigInteger_setbit0(JNIEnv* env, jobject r, jobject s, jint n)
+Java_java_math_BigInteger_setbit0(JNIEnv* env, jobject r UNUSED,
+ jobject s UNUSED,
+ jint n UNUSED)
{
gmp_not_found(env);
}
void
-Java_java_math_BigInteger_clrbit0(JNIEnv* env, jobject r, jobject s, jint n)
+Java_java_math_BigInteger_clrbit0(JNIEnv* env, jobject r UNUSED,
+ jobject s UNUSED, jint n UNUSED)
{
gmp_not_found(env);
}
jint
-Java_java_math_BigInteger_scansetbit0(JNIEnv* env, jobject s)
+Java_java_math_BigInteger_scansetbit0(JNIEnv* env, jobject s UNUSED)
{
gmp_not_found(env);
@@ -725,7 +750,8 @@
}
jint
-Java_java_math_BigInteger_cmp0(JNIEnv* env, jclass cls, jobject s1, jobject s2)
+Java_java_math_BigInteger_cmp0(JNIEnv* env, jclass cls UNUSED,
+ jobject s1 UNUSED, jobject s2 UNUSED)
{
gmp_not_found(env);
@@ -733,7 +759,8 @@
}
jstring
-Java_java_math_BigInteger_toString0(JNIEnv* env, jobject s, jint base)
+Java_java_math_BigInteger_toString0(JNIEnv* env, jobject s UNUSED,
+ jint base UNUSED)
{
gmp_not_found(env);
@@ -741,7 +768,7 @@
}
jdouble
-Java_java_math_BigInteger_toDouble0(JNIEnv* env, jobject s)
+Java_java_math_BigInteger_toDouble0(JNIEnv* env, jobject s UNUSED)
{
gmp_not_found(env);
@@ -749,7 +776,7 @@
}
jint
-Java_java_math_BigInteger_toInt0(JNIEnv* env, jobject s)
+Java_java_math_BigInteger_toInt0(JNIEnv* env, jobject s UNUSED)
{
gmp_not_found(env);
@@ -757,7 +784,8 @@
}
jint
-Java_java_math_BigInteger_probablyPrime0(JNIEnv* env, jobject s, jint prop)
+Java_java_math_BigInteger_probablyPrime0(JNIEnv* env, jobject s UNUSED,
+ jint prop UNUSED)
{
gmp_not_found(env);
@@ -765,7 +793,7 @@
}
jint
-Java_java_math_BigInteger_bitLength0(JNIEnv* env, jobject s)
+Java_java_math_BigInteger_bitLength0(JNIEnv* env, jobject s UNUSED)
{
gmp_not_found(env);
@@ -773,7 +801,8 @@
}
jint
-Java_java_math_BigInteger_hamDist0(JNIEnv* env, jobject s1, jobject s2)
+Java_java_math_BigInteger_hamDist0(JNIEnv* env, jobject s1 UNUSED,
+ jobject s2 UNUSED)
{
gmp_not_found(env);
Index: kaffe/libraries/clib/native/Class.c
diff -u kaffe/libraries/clib/native/Class.c:1.85 kaffe/libraries/clib/native/Class.c:1.86
--- kaffe/libraries/clib/native/Class.c:1.85 Wed Jun 29 22:55:27 2005
+++ kaffe/libraries/clib/native/Class.c Sat Aug 13 23:37:23 2005
@@ -290,7 +290,8 @@
}
jint
-java_lang_VMClass_getModifiers(struct Hjava_lang_Class* this, jboolean ignoreInnerClassAttribute)
+java_lang_VMClass_getModifiers(struct Hjava_lang_Class* this,
+ jboolean ignoreInnerClassAttribute UNUSED)
{
#ifndef ACC_SUPER
#define ACC_SUPER ACC_SYNCHRONISED
More information about the kaffe
mailing list