about summary refs log tree commit diff
path: root/linuxthreads/sysdeps/sh/pt-machine.h
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads/sysdeps/sh/pt-machine.h')
-rw-r--r--linuxthreads/sysdeps/sh/pt-machine.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/linuxthreads/sysdeps/sh/pt-machine.h b/linuxthreads/sysdeps/sh/pt-machine.h
index c7fcc694b1..68dd310594 100644
--- a/linuxthreads/sysdeps/sh/pt-machine.h
+++ b/linuxthreads/sysdeps/sh/pt-machine.h
@@ -68,12 +68,14 @@ struct _pthread_descr_struct;
   ({ __asm__ __volatile__("ldc %0,gbr" : : "r" (descr));})
 
 /* Access to data in the thread descriptor is easy.  */
-#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 /* __ASSEMBLER__ */
 
 #endif /* pt-machine.h */