This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: fix -Werror regressions with gcc 4.8 on x86_64
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: libc-alpha at sourceware dot org
- Date: Tue, 23 Dec 2014 17:28:15 -0200
- Subject: Re: fix -Werror regressions with gcc 4.8 on x86_64
- Authentication-results: sourceware.org; auth=none
- References: <orr3vr3pa1 dot fsf at free dot home>
On Dec 23, 2014, Alexandre Oliva <aoliva@redhat.com> 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));
--
Alexandre Oliva, freedom fighter http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/ FSF Latin America board member
Free Software Evangelist|Red Hat Brasil GNU Toolchain Engineer