Skip to content

Commit

Permalink
S/390: Get rid of warning unused variable in dl-machine.h.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Liebler authored and Andreas Krebbel committed Nov 13, 2014
1 parent 618cebe commit 47df825
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2014-11-13 Stefan Liebler <stli@linux.vnet.ibm.com>

* sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
to get rid of unused variable warning.

2014-11-13 Stefan Liebler <stli@linux.vnet.ibm.com>

* sysdeps/s390/s390-32/backtrace.c (__backtrace):
Expand Down
3 changes: 2 additions & 1 deletion sysdeps/s390/s390-64/dl-machine.h
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ elf_machine_rela (struct link_map *map, const Elf64_Rela *reloc,
return;
else
{
#ifndef RESOLVE_CONFLICT_FIND_MAP
#if !defined RTLD_BOOTSTRAP && !defined RESOLVE_CONFLICT_FIND_MAP
/* Only needed for R_390_COPY below. */
const Elf64_Sym *const refsym = sym;
#endif
struct link_map *sym_map = RESOLVE_MAP (&sym, version, r_type);
Expand Down

0 comments on commit 47df825

Please sign in to comment.