[kaffe] CVS kaffe (robilad): Small attribute cleanup

Kaffe CVS cvs-commits at kaffe.org
Sat Feb 5 01:59:23 PST 2005


PatchSet 5973 
Date: 2005/02/05 09:54:48
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Small attribute cleanup

2005-02-05  Dalibor Topic  <robilad at kaffe.org>

        * libraries/clib/native/gnu_classpath_VMSystemProperties.c
        Use UNUSED instead of using the gcc attribute explicitely.

Members: 
	ChangeLog:1.3512->1.3513 
	libraries/clib/native/gnu_classpath_VMSystemProperties.c:1.3->1.4 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3512 kaffe/ChangeLog:1.3513
--- kaffe/ChangeLog:1.3512	Sat Feb  5 09:22:37 2005
+++ kaffe/ChangeLog	Sat Feb  5 09:54:48 2005
@@ -1,5 +1,10 @@
 2005-02-05  Dalibor Topic  <robilad at kaffe.org>
 
+	* libraries/clib/native/gnu_classpath_VMSystemProperties.c
+	Use UNUSED instead of using the gcc attribute explicitely.
+
+2005-02-05  Dalibor Topic  <robilad at kaffe.org>
+
 	* kaffe/kaffevm/exception.h: Removed explicit
 	prototypes for the inline functions.
 
Index: kaffe/libraries/clib/native/gnu_classpath_VMSystemProperties.c
diff -u kaffe/libraries/clib/native/gnu_classpath_VMSystemProperties.c:1.3 kaffe/libraries/clib/native/gnu_classpath_VMSystemProperties.c:1.4
--- kaffe/libraries/clib/native/gnu_classpath_VMSystemProperties.c:1.3	Sat Feb  5 09:22:42 2005
+++ kaffe/libraries/clib/native/gnu_classpath_VMSystemProperties.c	Sat Feb  5 09:54:51 2005
@@ -65,7 +65,7 @@
 
 JNIEXPORT void JNICALL
 Java_gnu_classpath_VMSystemProperties_postInit(JNIEnv *env, 
-					       jclass klass __attribute__((__unused__)), 
+					       jclass klass UNUSED, 
 					       jobject outputProperties)
 {
   userProperty* prop;
@@ -114,7 +114,7 @@
 
 JNIEXPORT jstring JNICALL
 Java_gnu_classpath_VMSystemProperties_getLocale (JNIEnv *env,
-                                                 jclass klass __attribute__((__unused__)))
+                                                 jclass klass UNUSED)
 {
   const char *locale;
 
@@ -129,7 +129,7 @@
 
 JNIEXPORT jstring JNICALL
 Java_gnu_classpath_VMSystemProperties_getKaffeLibraryPath (JNIEnv *env,
-                                                           jclass klass __attribute__((__unused__)))
+                                                           jclass klass UNUSED)
 {
   const char * path;
 
@@ -139,35 +139,35 @@
 
 JNIEXPORT jstring JNICALL
 Java_gnu_classpath_VMSystemProperties_getSunBootClassPath (JNIEnv *env,
-                                                           jclass klass __attribute__((__unused__)))
+                                                           jclass klass UNUSED)
 {
   return (*env)->NewStringUTF(env, realBootClassPath);
 }
 
 JNIEXPORT jstring JNICALL
 Java_gnu_classpath_VMSystemProperties_getFileSeparator (JNIEnv *env,
-                                                        jclass klass __attribute__((__unused__)))
+                                                        jclass klass UNUSED)
 {
   return (*env)->NewStringUTF(env, file_separator);
 }
 
 JNIEXPORT jstring JNICALL
 Java_gnu_classpath_VMSystemProperties_getLineSeparator (JNIEnv *env,
-                                                        jclass klass __attribute__((__unused__)))
+                                                        jclass klass UNUSED)
 {
   return (*env)->NewStringUTF(env, line_separator);
 }
 
 JNIEXPORT jstring JNICALL
 Java_gnu_classpath_VMSystemProperties_getPathSeparator (JNIEnv *env,
-                                                        jclass klass __attribute__((__unused__)))
+                                                        jclass klass UNUSED)
 {
   return (*env)->NewStringUTF(env, path_separator);
 }
 
 JNIEXPORT jstring JNICALL
 Java_gnu_classpath_VMSystemProperties_getJavaClassPath (JNIEnv *env,
-                                                        jclass klass __attribute__((__unused__)))
+                                                        jclass klass UNUSED)
 {
   const char *cpath;
 
@@ -181,7 +181,7 @@
 
 JNIEXPORT jstring JNICALL
 Java_gnu_classpath_VMSystemProperties_getJavaIoTmpdir (JNIEnv *env,
-                                                       jclass klass __attribute__((__unused__)))
+                                                       jclass klass UNUSED)
 {
 #if defined(__WIN32__)
   return (*env)->NewStringUTF(env, "C:\\TEMP");
@@ -192,7 +192,7 @@
 
 JNIEXPORT jstring JNICALL
 Java_gnu_classpath_VMSystemProperties_getJavaCompiler (JNIEnv *env,
-                                                       jclass klass __attribute__((__unused__)))
+                                                       jclass klass UNUSED)
 {
   const char *engine;
 
@@ -202,7 +202,7 @@
 
 JNIEXPORT jstring JNICALL
 Java_gnu_classpath_VMSystemProperties_getJavaHome (JNIEnv *env,
-                                                   jclass klass __attribute__((__unused__)))
+                                                   jclass klass UNUSED)
 {
   const char *jhome;
 
@@ -217,7 +217,7 @@
 
 JNIEXPORT jstring JNICALL
 Java_gnu_classpath_VMSystemProperties_getOsName (JNIEnv *env,
-                                                 jclass klass __attribute__((__unused__)))
+                                                 jclass klass UNUSED)
 {
   int r;
   const char *osname;
@@ -239,7 +239,7 @@
 
 JNIEXPORT jstring JNICALL
 Java_gnu_classpath_VMSystemProperties_getOsArch (JNIEnv *env,
-                                                 jclass klass __attribute__((__unused__)))
+                                                 jclass klass UNUSED)
 {
   int r;
   const char *osarch;
@@ -261,7 +261,7 @@
 
 JNIEXPORT jstring JNICALL
 Java_gnu_classpath_VMSystemProperties_getOsVersion (JNIEnv *env,
-                                                    jclass klass __attribute__((__unused__)))
+                                                    jclass klass UNUSED)
 {
   int r;
   const char *osversion;
@@ -283,7 +283,7 @@
 
 JNIEXPORT jstring JNICALL
 Java_gnu_classpath_VMSystemProperties_getUserDir (JNIEnv *env,
-                                                  jclass klass __attribute__((__unused__)))
+                                                  jclass klass UNUSED)
 {
   const char *dir;
 
@@ -303,7 +303,7 @@
 
 JNIEXPORT jstring JNICALL
 Java_gnu_classpath_VMSystemProperties_getUserName (JNIEnv *env,
-                                                   jclass klass __attribute__((__unused__)))
+                                                   jclass klass UNUSED)
 {
   const char *name;
 #if defined(HAVE_PWD_H)
@@ -327,7 +327,7 @@
 
 JNIEXPORT jstring JNICALL
 Java_gnu_classpath_VMSystemProperties_getUserHome (JNIEnv *env,
-                                                   jclass klass __attribute__((__unused__)))
+                                                   jclass klass UNUSED)
 {
   const char *home;
 #if defined(HAVE_PWD_H)
@@ -351,7 +351,7 @@
 
 JNIEXPORT jstring JNICALL
 Java_gnu_classpath_VMSystemProperties_getGnuCpuEndian (JNIEnv *env,
-                                                       jclass klass __attribute__((__unused__)))
+                                                       jclass klass UNUSED)
 {
   const char *endian;
 




More information about the kaffe mailing list