From 66cadc058dd7ce8106624df5732ea69a484621b9 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 2 Dec 2014 21:29:54 +0000 Subject: 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)). --- elf/tst-unique4lib.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'elf') 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; -- cgit 1.4.1