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

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