mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
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)).
This commit is contained in:
parent
0f0a1c82f5
commit
66cadc058d
@ -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]:
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user