From patchwork Tue Dec 23 19:28:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Oliva X-Patchwork-Id: 4414 Received: (qmail 18257 invoked by alias); 23 Dec 2014 19:28:32 -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 18235 invoked by uid 89); 23 Dec 2014 19:28:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com From: Alexandre Oliva To: libc-alpha@sourceware.org Subject: Re: fix -Werror regressions with gcc 4.8 on x86_64 References: Date: Tue, 23 Dec 2014 17:28:15 -0200 In-Reply-To: (Alexandre Oliva's message of "Tue, 23 Dec 2014 03:31:50 -0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 On Dec 23, 2014, Alexandre Oliva wrote: > Here's a patch that fixes a few build errors I got when using GCC 4.8 > with -Werror. Ok to install? And here are a few more that I only hit when running the testsuite... Ok to install? for ChangeLog * dlfcn/bug-dl-leaf-lib (lib_main): Mark ret as unused. * math/atest-exp.c (exp_mpn): Likewise chk. * math/atest-exp2.c (exp_mpn): Likewise. --- dlfcn/bug-dl-leaf-lib.c | 2 +- math/atest-exp.c | 2 +- math/atest-exp2.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlfcn/bug-dl-leaf-lib.c b/dlfcn/bug-dl-leaf-lib.c index 4afd81b..e7b19f2 100644 --- a/dlfcn/bug-dl-leaf-lib.c +++ b/dlfcn/bug-dl-leaf-lib.c @@ -50,7 +50,7 @@ void check_val_fini (void) int lib_main (void) { - int ret; + int ret __attribute__((__unused__)); void *hdl; /* Make sure the constructor sees the updated val. */ diff --git a/math/atest-exp.c b/math/atest-exp.c index 406b00b..4eb1728 100644 --- a/math/atest-exp.c +++ b/math/atest-exp.c @@ -61,7 +61,7 @@ exp_mpn (mp1 ex, mp1 x) unsigned n; mp1 xp; mp2 tmp; - mp_limb_t chk; + mp_limb_t chk __attribute__((__unused__)); mp1 tol; memset (xp, 0, sizeof (mp1)); diff --git a/math/atest-exp2.c b/math/atest-exp2.c index 4599994..527377e 100644 --- a/math/atest-exp2.c +++ b/math/atest-exp2.c @@ -92,7 +92,7 @@ exp_mpn (mp1 ex, mp1 x) unsigned int n; mp1 xp; mp2 tmp; - mp_limb_t chk; + mp_limb_t chk __attribute__((__unused__)); mp1 tol; memset (xp, 0, sizeof (mp1));