aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-01-30 21:03:40 +0000
committerUlrich Drepper <drepper@redhat.com>2003-01-30 21:03:40 +0000
commitec67a380c2b710729d17bf8f8ed4d614e07d9f17 (patch)
treefac2fbe8c69af9336edda75a7a6f300970f269ad /linuxthreads
parentd6f5e7216f06ed520ee5dbfad3a06db447f9da36 (diff)
downloadglibc-ec67a380c2b710729d17bf8f8ed4d614e07d9f17.zip
glibc-ec67a380c2b710729d17bf8f8ed4d614e07d9f17.tar.gz
glibc-ec67a380c2b710729d17bf8f8ed4d614e07d9f17.tar.bz2
Avoid warnings about unused self variable.
Diffstat (limited to 'linuxthreads')
-rw-r--r--linuxthreads/sysdeps/alpha/tls.h10
-rw-r--r--linuxthreads/sysdeps/ia64/pt-machine.h10
-rw-r--r--linuxthreads/sysdeps/s390/s390-32/pt-machine.h10
-rw-r--r--linuxthreads/sysdeps/s390/s390-64/pt-machine.h10
-rw-r--r--linuxthreads/sysdeps/sh/pt-machine.h10
-rw-r--r--linuxthreads/sysdeps/sparc/sparc32/pt-machine.h10
-rw-r--r--linuxthreads/sysdeps/sparc/sparc64/pt-machine.h10
7 files changed, 42 insertions, 28 deletions
diff --git a/linuxthreads/sysdeps/alpha/tls.h b/linuxthreads/sysdeps/alpha/tls.h
index 261e67d..261d333 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__ */
diff --git a/linuxthreads/sysdeps/ia64/pt-machine.h b/linuxthreads/sysdeps/ia64/pt-machine.h
index 6efe669..c438312 100644
--- a/linuxthreads/sysdeps/ia64/pt-machine.h
+++ b/linuxthreads/sysdeps/ia64/pt-machine.h
@@ -64,12 +64,14 @@ register struct _pthread_descr_struct *__thread_self __asm__("r13");
/* 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))
/* Memory barrier */
diff --git a/linuxthreads/sysdeps/s390/s390-32/pt-machine.h b/linuxthreads/sysdeps/s390/s390-32/pt-machine.h
index c3a8110..e95922d 100644
--- a/linuxthreads/sysdeps/s390/s390-32/pt-machine.h
+++ b/linuxthreads/sysdeps/s390/s390-32/pt-machine.h
@@ -80,12 +80,14 @@ register char * stack_pointer __asm__ ("15");
#endif
/* 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))
/* We want the OS to assign stack addresses. */
#define FLOATING_STACKS 1
diff --git a/linuxthreads/sysdeps/s390/s390-64/pt-machine.h b/linuxthreads/sysdeps/s390/s390-64/pt-machine.h
index 5cab958..eaa5abb 100644
--- a/linuxthreads/sysdeps/s390/s390-64/pt-machine.h
+++ b/linuxthreads/sysdeps/s390/s390-64/pt-machine.h
@@ -86,12 +86,14 @@ register char * stack_pointer __asm__ ("15");
#endif
/* 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))
/* We want the OS to assign stack addresses. */
#define FLOATING_STACKS 1
diff --git a/linuxthreads/sysdeps/sh/pt-machine.h b/linuxthreads/sysdeps/sh/pt-machine.h
index c7fcc69..68dd310 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 */
diff --git a/linuxthreads/sysdeps/sparc/sparc32/pt-machine.h b/linuxthreads/sysdeps/sparc/sparc32/pt-machine.h
index 404edf2..f60d806 100644
--- a/linuxthreads/sysdeps/sparc/sparc32/pt-machine.h
+++ b/linuxthreads/sysdeps/sparc/sparc32/pt-machine.h
@@ -65,12 +65,14 @@ register struct _pthread_descr_struct *__thread_self __asm__("%g7");
#define INIT_THREAD_SELF(descr, nr) (__thread_self = (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))
/* We want the OS to assign stack addresses. */
#define FLOATING_STACKS 1
diff --git a/linuxthreads/sysdeps/sparc/sparc64/pt-machine.h b/linuxthreads/sysdeps/sparc/sparc64/pt-machine.h
index 291a732..0d8a702 100644
--- a/linuxthreads/sysdeps/sparc/sparc64/pt-machine.h
+++ b/linuxthreads/sysdeps/sparc/sparc64/pt-machine.h
@@ -87,12 +87,14 @@ __compare_and_swap (long int *p, long int oldval, long int newval)
}
/* 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))
/* We want the OS to assign stack addresses. */
#define FLOATING_STACKS 1