This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fix -Werror regressions with gcc 4.8 on x86_64


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]