Blame SOURCES/glibc-rh1505492-unused-17.patch

147e83
commit b4f518ecfad09fc4279ea26a565332835e403dab
147e83
Author: Carlos O'Donell <carlos@redhat.com>
147e83
Date:   Tue Mar 15 23:16:47 2016 -0400
147e83
147e83
    Fix building glibc master with NDEBUG and --with-cpu.
147e83
    
147e83
    When building on i686, x86_64, and arm, and with NDEBUG, or --with-cpu
147e83
    there are various variables and functions which are unused based on
147e83
    these settings.
147e83
    
147e83
    This patch marks all such variables with __attribute__((unused)) to
147e83
    avoid the compiler warnings when building with the aformentioned
147e83
    options.
147e83
147e83
Conflicts:
147e83
	dlfcn/bug-dl-leaf-lib.c
147e83
	  (Missing backport of fix for swbz#15897; file removed.)
147e83
	sysdeps/arm/dl-machine.h
147e83
	  (Missing backport of fix for swbz#17078.)
147e83
147e83
diff --git a/catgets/tst-catgets.c b/catgets/tst-catgets.c
147e83
index 140de722c893297d..fdc9f2758ffd60a1 100644
147e83
--- a/catgets/tst-catgets.c
147e83
+++ b/catgets/tst-catgets.c
147e83
@@ -22,7 +22,7 @@ do_bz17905 (void)
147e83
 {
147e83
   char *buf;
147e83
   struct rlimit rl;
147e83
-  nl_catd result;
147e83
+  nl_catd result __attribute__ ((unused));
147e83
 
147e83
   const int sz = 1024 * 1024;
147e83
 
147e83
diff --git a/math/atest-exp.c b/math/atest-exp.c
147e83
index d384c4920acb044f..8f4711aaa90d09e5 100644
147e83
--- a/math/atest-exp.c
147e83
+++ b/math/atest-exp.c
147e83
@@ -61,7 +61,7 @@ exp_mpn (mp1 ex, mp1 x)
147e83
    unsigned n;
147e83
    mp1 xp;
147e83
    mp2 tmp;
147e83
-   mp_limb_t chk;
147e83
+   mp_limb_t chk __attribute__ ((unused));
147e83
    mp1 tol;
147e83
 
147e83
    memset (xp, 0, sizeof (mp1));
147e83
diff --git a/math/atest-exp2.c b/math/atest-exp2.c
147e83
index 1a2be9ba021bb24a..6f5dd7760c78b7e2 100644
147e83
--- a/math/atest-exp2.c
147e83
+++ b/math/atest-exp2.c
147e83
@@ -102,7 +102,7 @@ exp_mpn (mp1 ex, mp1 x)
147e83
    unsigned int n;
147e83
    mp1 xp;
147e83
    mp2 tmp;
147e83
-   mp_limb_t chk;
147e83
+   mp_limb_t chk __attribute__ ((unused));
147e83
    mp1 tol;
147e83
 
147e83
    memset (xp, 0, sizeof (mp1));
147e83
diff --git a/sysdeps/i386/i686/dl-hash.h b/sysdeps/i386/i686/dl-hash.h
147e83
index 14fbbc251148c176..65acc88a6e6f093c 100644
147e83
--- a/sysdeps/i386/i686/dl-hash.h
147e83
+++ b/sysdeps/i386/i686/dl-hash.h
147e83
@@ -26,6 +26,7 @@
147e83
    would be much slower than the generic C implementation.  So don't
147e83
    use it.  */
147e83
 static unsigned int
147e83
+__attribute__ ((unused))
147e83
 _dl_elf_hash (const char *name)
147e83
 {
147e83
   unsigned int result;