From patchwork Fri Jul 4 02:25:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roland McGrath X-Patchwork-Id: 1914 Received: (qmail 15317 invoked by alias); 4 Jul 2014 02:25:36 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 15210 invoked by uid 89); 4 Jul 2014 02:25:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: topped-with-meat.com MIME-Version: 1.0 From: Roland McGrath To: "GNU C. Library" Subject: [COMMITTED PATCH] S390: Quash unused variable warning due to no-op THREAD_SET_POINTER_GUARD. Message-Id: <20140704022528.11D022C3988@topped-with-meat.com> Date: Thu, 3 Jul 2014 19:25:28 -0700 (PDT) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=SvUDtp+0 c=1 sm=1 tr=0 a=WkljmVdYkabdwxfqvArNOQ==:117 a=14OXPxybAAAA:8 a=DygwTQy1WKQA:10 a=Z6MIti7PxpgA:10 a=kj9zAlcOel0A:10 a=hOe2yjtxAAAA:8 a=sKPNaFJiBgVMxZp4GlgA:9 a=CjuIK1q_8ugA:10 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. */