Skip to content

Commit

Permalink
Fix elf/tst-unique4lib.cc warning.
Browse files Browse the repository at this point in the history
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)).
  • Loading branch information
Joseph Myers committed Dec 2, 2014
1 parent 0f0a1c8 commit 66cadc0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2014-12-02 Joseph Myers <joseph@codesourcery.com>

* elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).

2014-12-02 Adhemerval Zanella <azanella@linux.vnet.ibm.com>

* sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
Expand Down
2 changes: 1 addition & 1 deletion elf/tst-unique4lib.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 66cadc0

Please sign in to comment.