S390: Quash unused variable warning due to no-op THREAD_SET_POINTER_GUARD.
authorRoland McGrath <roland@hack.frob.com>
Fri, 4 Jul 2014 02:17:00 +0000 (19:17 -0700)
committerRoland McGrath <roland@hack.frob.com>
Fri, 4 Jul 2014 02:17:00 +0000 (19:17 -0700)
ChangeLog
sysdeps/s390/nptl/tls.h

index 0a8688a..22b8f23 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2014-07-03  Roland McGrath  <roland@hack.frob.com>
 
+       * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
+       value so it's not diagnosed as unused.
+
        * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
        thing) with "ifeq ($(subdir),rt)".
 
index 1c74efa..bc0db4a 100644 (file)
@@ -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.  */