+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
extern volatile unsigned char _wapi_sparc_lock;
+G_GNUC_UNUSED
static inline gint32 InterlockedCompareExchange(volatile gint32 *dest, gint32 exch, gint32 comp)
{
int tmp;
return(old);
}
+G_GNUC_UNUSED
static inline gpointer InterlockedCompareExchangePointer(volatile gpointer *dest, gpointer exch, gpointer comp)
{
int tmp;
return(old);
}
+G_GNUC_UNUSED
static inline gint32 InterlockedIncrement(volatile gint32 *dest)
{
int tmp;
return(ret);
}
+G_GNUC_UNUSED
static inline gint32 InterlockedDecrement(volatile gint32 *dest)
{
int tmp;
return(ret);
}
+G_GNUC_UNUSED
static inline gint32 InterlockedExchange(volatile gint32 *dest, gint32 exch)
{
int tmp;
return(ret);
}
+G_GNUC_UNUSED
static inline gpointer InterlockedExchangePointer(volatile gpointer *dest, gpointer exch)
{
int tmp;
return(ret);
}
+G_GNUC_UNUSED
static inline gint32 InterlockedExchangeAdd(volatile gint32 *dest, gint32 add)
{
int tmp;
/* 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));