summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads/sysdeps/sh/pt-machine.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-11-09 03:03:42 +0000
committerMike Frysinger <vapier@gentoo.org>2005-11-09 03:03:42 +0000
commit4404f3ef5cea1ab20ccdb2e41ba13e1fa015d665 (patch)
tree98e84dbe55f4c01a301d9adb405aed8ae634a72e /libpthread/linuxthreads/sysdeps/sh/pt-machine.h
parent748d47d24b0ec7c3d46748280bef1a06d716a07c (diff)
sync with glibc to get rid of warnings
Diffstat (limited to 'libpthread/linuxthreads/sysdeps/sh/pt-machine.h')
-rw-r--r--libpthread/linuxthreads/sysdeps/sh/pt-machine.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/libpthread/linuxthreads/sysdeps/sh/pt-machine.h b/libpthread/linuxthreads/sysdeps/sh/pt-machine.h
index c735ab22a..02545e6b4 100644
--- a/libpthread/linuxthreads/sysdeps/sh/pt-machine.h
+++ b/libpthread/linuxthreads/sysdeps/sh/pt-machine.h
@@ -68,10 +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) THREAD_SELF->member
-#define THREAD_GETMEM_NC(descr, member) THREAD_SELF->member
-#define THREAD_SETMEM(descr, member, value) THREAD_SELF->member = (value)
-#define THREAD_SETMEM_NC(descr, member, value) THREAD_SELF->member = (value)
+#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) \
+ ((void) sizeof (descr), THREAD_SELF->member = (value))
+#define THREAD_SETMEM_NC(descr, member, value) \
+ ((void) sizeof (descr), THREAD_SELF->member = (value))
#endif /* __ASSEMBLER__ */
#endif /* pt-machine.h */