[kaffe] CVS kaffe (doogie): Add some UNUSED annotations.

Kaffe CVS cvs-commits at kaffe.org
Fri Dec 10 12:58:53 PST 2004


PatchSet 5594 
Date: 2004/12/10 20:54:32
Author: doogie
Branch: HEAD
Tag: (none) 
Log:
Add some UNUSED annotations.

Members: 
	ChangeLog:1.3139->1.3140 
	kaffe/kaffevm/debug.c:1.56->1.57 
	kaffe/kaffevm/jni/jni-string.c:1.1->1.2 
	kaffe/kaffevm/jni/jni.c:1.10->1.11 
	kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:1.57->1.58 
	libraries/clib/math/BigInteger.c:1.23->1.24 
	replace/getaddrinfo.c:1.5->1.6 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3139 kaffe/ChangeLog:1.3140
--- kaffe/ChangeLog:1.3139	Fri Dec 10 20:47:47 2004
+++ kaffe/ChangeLog	Fri Dec 10 20:54:32 2004
@@ -1,5 +1,13 @@
 2004-12-10  Adam Heath  <doogie at brainfood.com>
 
+	* kaffe/kaffevm/debug.c, kaffe/kaffevm/jni/jni-string.c,
+	  kaffe/kaffevm/systems/unix-pthreads/thread-impl.c,
+	  kaffe/kaffevm/jni/jni.c, libraries/clib/math/BigInteger.c,
+	  replace/getaddrinfo.c:
+	  Add some UNUSED annotations.
+
+2004-12-10  Adam Heath  <doogie at brainfood.com>
+
 	* scripts/sort-warnings.pl, scripts/LogWarning.pm,
 	  scripts/WarningDescription.pm, scripts/JikesWarning.pm,
 	  scripts/GCCWarning.pm, scripts/Registry.pm:
Index: kaffe/kaffe/kaffevm/debug.c
diff -u kaffe/kaffe/kaffevm/debug.c:1.56 kaffe/kaffe/kaffevm/debug.c:1.57
--- kaffe/kaffe/kaffevm/debug.c:1.56	Sat Aug 28 15:29:55 2004
+++ kaffe/kaffe/kaffevm/debug.c	Fri Dec 10 20:54:37 2004
@@ -55,8 +55,8 @@
 
 /* Don't waste space with the debugging functions */
 
-void dbgSetMask(debugmask_t m) { }
-int dbgSetMaskStr(const char *s) { return 0; }
+void dbgSetMask(debugmask_t UNUSED m) { }
+int dbgSetMaskStr(const char UNUSED *s) { return 0; }
 
 #else /* Actually define the functions */
 /* --- Debugging is enabled --- */
Index: kaffe/kaffe/kaffevm/jni/jni-string.c
diff -u kaffe/kaffe/kaffevm/jni/jni-string.c:1.1 kaffe/kaffe/kaffevm/jni/jni-string.c:1.2
--- kaffe/kaffe/kaffevm/jni/jni-string.c:1.1	Mon Jul  5 16:40:47 2004
+++ kaffe/kaffe/kaffevm/jni/jni-string.c	Fri Dec 10 20:54:37 2004
@@ -184,7 +184,7 @@
 }
 
 void
-KaffeJNI_GetStringRegion(JNIEnv *env, jstring data, jsize start, jsize len, jchar *buf)
+KaffeJNI_GetStringRegion(JNIEnv UNUSED *env, jstring data, jsize start, jsize len, jchar *buf)
 {
   Hjava_lang_String* const str = (Hjava_lang_String*)data;
   jchar *str_ptr;
@@ -208,7 +208,7 @@
 }
 
 void
-KaffeJNI_GetStringUTFRegion(JNIEnv *env, jstring data, jsize start, jsize len, char *buf)
+KaffeJNI_GetStringUTFRegion(JNIEnv UNUSED *env, jstring data, jsize start, jsize len, char *buf)
 {
   Hjava_lang_String* const str = (Hjava_lang_String*)data;
   jchar *str_ptr;
Index: kaffe/kaffe/kaffevm/jni/jni.c
diff -u kaffe/kaffe/kaffevm/jni/jni.c:1.10 kaffe/kaffe/kaffevm/jni/jni.c:1.11
--- kaffe/kaffe/kaffevm/jni/jni.c:1.10	Fri Dec 10 00:37:23 2004
+++ kaffe/kaffe/kaffevm/jni/jni.c	Fri Dec 10 20:54:37 2004
@@ -146,7 +146,7 @@
 
 
 static jint
-Kaffe_GetVersion(JNIEnv* env)
+Kaffe_GetVersion(JNIEnv* UNUSED env)
 {
        return Kaffe_JavaVMArgs.version;
 }
@@ -217,7 +217,7 @@
  */
 
 static jclass
-Kaffe_FindClass(JNIEnv* env, const char* name)
+Kaffe_FindClass(JNIEnv UNUSED *env, const char* name)
 {
 	jstring nameString;
 	Utf8Const* utf8;
Index: kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c
diff -u kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:1.57 kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:1.58
--- kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:1.57	Thu Dec  9 05:21:35 2004
+++ kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c	Fri Dec 10 20:54:39 2004
@@ -528,7 +528,7 @@
  */
 void
 jthread_init(UNUSED int pre,
-        int maxpr, int minpr,
+        int maxpr, int UNUSED minpr,
 	Collector *thread_collector,
 	void (*destructor)(void *),
         void (*_onstop)(void) UNUSED,
Index: kaffe/libraries/clib/math/BigInteger.c
diff -u kaffe/libraries/clib/math/BigInteger.c:1.23 kaffe/libraries/clib/math/BigInteger.c:1.24
--- kaffe/libraries/clib/math/BigInteger.c:1.23	Thu Jul 22 14:01:45 2004
+++ kaffe/libraries/clib/math/BigInteger.c	Fri Dec 10 20:54:40 2004
@@ -31,7 +31,7 @@
 
 static void *
 /* ARGUSED */
-bi_realloc(void *ptr, size_t old_size, size_t new_size)
+bi_realloc(void *ptr, size_t UNUSED old_size, size_t new_size)
 {
 	void *p = KREALLOC(ptr, new_size);
 	return (p);
@@ -39,7 +39,7 @@
 
 static void
 /* ARGUSED */
-bi_free(void *ptr, size_t size) 
+bi_free(void *ptr, size_t UNUSED size) 
 {
 	KFREE(ptr);
 }
@@ -224,7 +224,7 @@
 }
 
 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 UNUSED cls, jobject r1, jobject r2, jobject s1, jobject s2)
 {
 	mpz_ptr res1;
 	mpz_ptr res2;
@@ -474,7 +474,7 @@
 
 
 jint
-Java_java_math_BigInteger_cmp0(JNIEnv* env, jclass cls, jobject s1, jobject s2)
+Java_java_math_BigInteger_cmp0(JNIEnv* env, jclass UNUSED cls, jobject s1, jobject s2)
 {
 	mpz_srcptr src1;
 	mpz_srcptr src2;
Index: kaffe/replace/getaddrinfo.c
diff -u kaffe/replace/getaddrinfo.c:1.5 kaffe/replace/getaddrinfo.c:1.6
--- kaffe/replace/getaddrinfo.c:1.5	Sat Nov  6 20:02:08 2004
+++ kaffe/replace/getaddrinfo.c	Fri Dec 10 20:54:40 2004
@@ -504,7 +504,7 @@
 int
 getnameinfo(sa, salen, node, nodelen, serv, servlen, flags)
     const struct sockaddr *sa;
-    socklen_t salen;
+    socklen_t UNUSED salen;
     char *node;
     socklen_t nodelen;
     char *serv;




More information about the kaffe mailing list