This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[COMMITTED PATCH] S390: Quash unused variable warning due to no-op THREAD_SET_POINTER_GUARD.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Thu, 3 Jul 2014 19:25:28 -0700 (PDT)
- Subject: [COMMITTED PATCH] S390: Quash unused variable warning due to no-op THREAD_SET_POINTER_GUARD.
- Authentication-results: sourceware.org; auth=none
Build-tested for s390x-linux-gnu. Committed as obvious enough.
Thanks,
Roland
* sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
value so it's not diagnosed as unused.
--- a/sysdeps/s390/nptl/tls.h
+++ b/sysdeps/s390/nptl/tls.h
@@ -173,7 +173,7 @@ typedef struct
use stack_guard as pointer_guard. */
#define THREAD_GET_POINTER_GUARD() \
THREAD_GETMEM (THREAD_SELF, header.stack_guard)
-#define THREAD_SET_POINTER_GUARD(value)
+#define THREAD_SET_POINTER_GUARD(value) ((void) (value))
#define THREAD_COPY_POINTER_GUARD(descr)
/* Get and set the global scope generation counter in struct pthread. */