2004-06-30 Zoltan Varga <vargaz@freemail.hu>
authorZoltan Varga <vargaz@gmail.com>
Wed, 30 Jun 2004 14:52:11 +0000 (14:52 -0000)
committerZoltan Varga <vargaz@gmail.com>
Wed, 30 Jun 2004 14:52:11 +0000 (14:52 -0000)
* mono-mutex.h atomic.h: Add G_GNUC_UNUSED to static inline functions
to prevent warnings.

svn path=/trunk/mono/; revision=30575

mono/io-layer/ChangeLog
mono/io-layer/atomic.h
mono/io-layer/mono-mutex.h

index 5b19c8ceadfd8761e41a8f63644ebc561fc56461..4038b544355bb2691206dadc771458b0ebca292d 100644 (file)
@@ -1,3 +1,8 @@
+2004-06-30  Zoltan Varga  <vargaz@freemail.hu>
+
+       * mono-mutex.h atomic.h: Add G_GNUC_UNUSED to static inline functions
+       to prevent warnings.
+
 2004-06-24  Dick Porter  <dick@ximian.com>
 
        * mutexes.c: Indicate when a named mutex was reused
index c93e61460429edd54ad7185b33b1103e62fd0d38..a1149f9ea70c847c5fd1f4d589eb04ae43293b11 100644 (file)
@@ -159,6 +159,7 @@ static inline void begin_spin(volatile unsigned char *lock)
 
 extern volatile unsigned char _wapi_sparc_lock;
 
+G_GNUC_UNUSED 
 static inline gint32 InterlockedCompareExchange(volatile gint32 *dest, gint32 exch, gint32 comp)
 {
        int tmp;
@@ -176,6 +177,7 @@ static inline gint32 InterlockedCompareExchange(volatile gint32 *dest, gint32 ex
        return(old);
 }
 
+G_GNUC_UNUSED 
 static inline gpointer InterlockedCompareExchangePointer(volatile gpointer *dest, gpointer exch, gpointer comp)
 {
         int tmp;
@@ -193,6 +195,7 @@ static inline gpointer InterlockedCompareExchangePointer(volatile gpointer *dest
         return(old);
 }
 
+G_GNUC_UNUSED 
 static inline gint32 InterlockedIncrement(volatile gint32 *dest)
 {
         int tmp;
@@ -208,6 +211,7 @@ static inline gint32 InterlockedIncrement(volatile gint32 *dest)
         return(ret);
 }
 
+G_GNUC_UNUSED 
 static inline gint32 InterlockedDecrement(volatile gint32 *dest)
 {
         int tmp;
@@ -223,6 +227,7 @@ static inline gint32 InterlockedDecrement(volatile gint32 *dest)
         return(ret);
 }
 
+G_GNUC_UNUSED
 static inline gint32 InterlockedExchange(volatile gint32 *dest, gint32 exch)
 {
         int tmp;
@@ -238,6 +243,7 @@ static inline gint32 InterlockedExchange(volatile gint32 *dest, gint32 exch)
         return(ret);
 }
 
+G_GNUC_UNUSED
 static inline gpointer InterlockedExchangePointer(volatile gpointer *dest, gpointer exch)
 {
         int tmp;
@@ -253,6 +259,7 @@ static inline gpointer InterlockedExchangePointer(volatile gpointer *dest, gpoin
         return(ret);
 }
 
+G_GNUC_UNUSED
 static inline gint32 InterlockedExchangeAdd(volatile gint32 *dest, gint32 add)
 {
         int tmp;
index 3c4ba577fff5c2255c574820fe09d81349a975dc..8f4f3f2c9471961aea76d0586d160ac2caefd0ef 100644 (file)
@@ -162,6 +162,7 @@ typedef pthread_mutexattr_t mono_mutexattr_t;
 /* This is a function so it can be passed to pthread_cleanup_push -
  * that is a macro and giving it a macro as a parameter breaks.
  */
+G_GNUC_UNUSED
 static inline int mono_mutex_unlock_in_cleanup (mono_mutex_t *mutex)
 {
        return(mono_mutex_unlock (mutex));