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