From ec67a380c2b710729d17bf8f8ed4d614e07d9f17 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 30 Jan 2003 21:03:40 +0000 Subject: Avoid warnings about unused self variable. --- linuxthreads/sysdeps/alpha/tls.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'linuxthreads/sysdeps/alpha/tls.h') diff --git a/linuxthreads/sysdeps/alpha/tls.h b/linuxthreads/sysdeps/alpha/tls.h index 261e67dd0f..261d333eb4 100644 --- a/linuxthreads/sysdeps/alpha/tls.h +++ b/linuxthreads/sysdeps/alpha/tls.h @@ -114,12 +114,14 @@ typedef struct the compiler does its job and unifies the multiple __builtin_thread_pointer instances. */ -#define THREAD_GETMEM(descr, member) (sizeof (descr), THREAD_SELF->member) -#define THREAD_GETMEM_NC(descr, member) (sizeof (descr), THREAD_SELF->member) +#define THREAD_GETMEM(descr, member) \ + ((void) sizeof (descr), THREAD_SELF->member) +#define THREAD_GETMEM_NC(descr, member) \ + ((void) sizeof (descr), THREAD_SELF->member) #define THREAD_SETMEM(descr, member, value) \ - (sizeof (descr), THREAD_SELF->member = (value)) + ((void) sizeof (descr), THREAD_SELF->member = (value)) #define THREAD_SETMEM_NC(descr, member, value) \ - (sizeof (descr), THREAD_SELF->member = (value)) + ((void) sizeof (descr), THREAD_SELF->member = (value)) # endif /* HAVE_TLS_SUPPORT */ #endif /* __ASSEMBLER__ */ -- cgit 1.4.1