about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2014-12-02 21:29:54 +0000
committerJoseph Myers <joseph@codesourcery.com>2014-12-02 21:29:54 +0000
commit66cadc058dd7ce8106624df5732ea69a484621b9 (patch)
treeaf486ab241192d0b8054ecfeb77c31c87e4a794e /elf
parent0f0a1c82f5d8e7b8d24f9eddc2b7728abd3d5bc4 (diff)
downloadglibc-66cadc058dd7ce8106624df5732ea69a484621b9.tar.gz
glibc-66cadc058dd7ce8106624df5732ea69a484621b9.tar.xz
glibc-66cadc058dd7ce8106624df5732ea69a484621b9.zip
Fix elf/tst-unique4lib.cc warning.
This patch fixes a warning "tst-unique4lib.cc:17:12: warning: 'b'
defined but not used [-Wunused-variable]".  I'm not sure exactly what
aspects of the test are or are not significant for the issue it is
testing for; the patch makes the minimal change of marking the
variable with __attribute__ ((used)).

Tested for x86_64.

	* elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
Diffstat (limited to 'elf')
-rw-r--r--elf/tst-unique4lib.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/tst-unique4lib.cc b/elf/tst-unique4lib.cc
index c9fdf9cfea..20a10e93d0 100644
--- a/elf/tst-unique4lib.cc
+++ b/elf/tst-unique4lib.cc
@@ -14,4 +14,4 @@ static int a[24] =
     S<23>::i, S<24>::i
   };
 
-static int b = S<1>::j;
+static int b __attribute__ ((used)) = S<1>::j;