]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix warning in elf/tst-unique4lib.cc.
authorTorvald Riegel <triegel@redhat.com>
Mon, 15 Dec 2014 21:05:06 +0000 (22:05 +0100)
committerTorvald Riegel <triegel@redhat.com>
Tue, 16 Dec 2014 09:26:48 +0000 (10:26 +0100)
ChangeLog
elf/tst-unique4lib.cc

index ee147e297fea7bcc988172fcfaeb50fb2c8b13bf..62767e5475b615b5979e864e5d1883de88126285 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-12-16  Torvald Riegel  <triegel@redhat.com>
+
+       * elf/tst-unique4lib.cc(a): Mark as used.
+
 2014-12-16  Florian Weimer  <fweimer@redhat.com>
 
        [BZ #17630]
index 20a10e93d0a6bb4ba8ff1b02a43e33ba9c720ddf..17a7cdf5677b14481e2029ecd9738ebcd463e3b9 100644 (file)
@@ -6,7 +6,7 @@ int S<N>::i = N;
 template<int N>
 const int S<N>::j __attribute__ ((used)) = -1;
 
-static int a[24] =
+static int a[24] __attribute__ ((used)) =
   {
     S<1>::i, S<2>::i, S<3>::i, S<4>::i, S<5>::i, S<6>::i, S<7>::i, S<8>::i,
     S<9>::i, S<10>::i, S<11>::i, S<12>::i, S<13>::i, S<14>::i, S<15>::i,