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

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