aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorvald Riegel <triegel@redhat.com>2014-12-15 22:05:06 +0100
committerTorvald Riegel <triegel@redhat.com>2014-12-16 10:26:48 +0100
commit1469f466967a48d11411aaaef7621db39caaee59 (patch)
tree0ebfec4769460ccbb69b5c55aaeb509370451994
parentAvoid infinite loop in nss_dns getnetbyname [BZ #17630] (diff)
downloadglibc-1469f466967a48d11411aaaef7621db39caaee59.tar.gz
glibc-1469f466967a48d11411aaaef7621db39caaee59.tar.bz2
glibc-1469f466967a48d11411aaaef7621db39caaee59.zip
Fix warning in elf/tst-unique4lib.cc.
-rw-r--r--ChangeLog4
-rw-r--r--elf/tst-unique4lib.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ee147e297f..62767e5475 100644
--- 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]
diff --git a/elf/tst-unique4lib.cc b/elf/tst-unique4lib.cc
index 20a10e93d0..17a7cdf567 100644
--- a/elf/tst-unique4lib.cc
+++ b/elf/tst-unique4lib.cc
@@ -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,