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

c6d234
commit 66cadc058dd7ce8106624df5732ea69a484621b9
c6d234
Author: Joseph Myers <joseph@codesourcery.com>
c6d234
Date:   Tue Dec 2 21:29:54 2014 +0000
c6d234
c6d234
    Fix elf/tst-unique4lib.cc warning.
c6d234
    
c6d234
    This patch fixes a warning "tst-unique4lib.cc:17:12: warning: 'b'
c6d234
    defined but not used [-Wunused-variable]".  I'm not sure exactly what
c6d234
    aspects of the test are or are not significant for the issue it is
c6d234
    testing for; the patch makes the minimal change of marking the
c6d234
    variable with __attribute__ ((used)).
c6d234
    
c6d234
    Tested for x86_64.
c6d234
    
c6d234
            * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
c6d234
c6d234
diff --git a/elf/tst-unique4lib.cc b/elf/tst-unique4lib.cc
c6d234
index c9fdf9cfeacad6d5..20a10e93d0a6bb4b 100644
c6d234
--- a/elf/tst-unique4lib.cc
c6d234
+++ b/elf/tst-unique4lib.cc
c6d234
@@ -14,4 +14,4 @@ static int a[24] =
c6d234
     S<23>::i, S<24>::i
c6d234
   };
c6d234
 
c6d234
-static int b = S<1>::j;
c6d234
+static int b __attribute__ ((used)) = S<1>::j;