about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2014-07-03 19:17:00 -0700
committerRoland McGrath <roland@hack.frob.com>2014-07-03 19:17:00 -0700
commit4d614fe5e0625f197805978730214e5236ef360c (patch)
tree9b36aac709d3bdc3bb7392c27690533bd1384fd7
parent38851324d820b7cf8b8e9694e7c33325c16f38db (diff)
downloadglibc-4d614fe5e0625f197805978730214e5236ef360c.tar.gz
glibc-4d614fe5e0625f197805978730214e5236ef360c.tar.xz
glibc-4d614fe5e0625f197805978730214e5236ef360c.zip
S390: Quash unused variable warning due to no-op THREAD_SET_POINTER_GUARD.
-rw-r--r--ChangeLog3
-rw-r--r--sysdeps/s390/nptl/tls.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0a8688a1ce..22b8f238e2 100644
--- 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)".
 
diff --git a/sysdeps/s390/nptl/tls.h b/sysdeps/s390/nptl/tls.h
index 1c74efa847..bc0db4a1f9 100644
--- 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.  */