mirror of git://sourceware.org/git/glibc.git
Fix unused-variable warnings from MIPS RESOLVE_GOTSYM macro.
This commit is contained in:
parent
986cab95e0
commit
c9c253d372
|
@ -1,5 +1,8 @@
|
||||||
2012-11-19 Joseph Myers <joseph@codesourcery.com>
|
2012-11-19 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
|
* sysdeps/mips/dl-machine.h (RESOLVE_GOTSYM): Declare VERSION
|
||||||
|
variable with __attribute__ ((unused)).
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
|
* sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
|
||||||
(INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
|
(INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
|
||||||
(INTERNAL_SYSCALL_ERROR_P): Cast val to void.
|
(INTERNAL_SYSCALL_ERROR_P): Cast val to void.
|
||||||
|
|
|
@ -637,7 +637,7 @@ elf_machine_got_rel (struct link_map *map, int lazy)
|
||||||
#define RESOLVE_GOTSYM(sym,vernum,sym_index,reloc) \
|
#define RESOLVE_GOTSYM(sym,vernum,sym_index,reloc) \
|
||||||
({ \
|
({ \
|
||||||
const ElfW(Sym) *ref = sym; \
|
const ElfW(Sym) *ref = sym; \
|
||||||
const struct r_found_version *version \
|
const struct r_found_version *version __attribute__ ((unused)) \
|
||||||
= vernum ? &map->l_versions[vernum[sym_index] & 0x7fff] : NULL; \
|
= vernum ? &map->l_versions[vernum[sym_index] & 0x7fff] : NULL; \
|
||||||
struct link_map *sym_map; \
|
struct link_map *sym_map; \
|
||||||
sym_map = RESOLVE_MAP (&ref, version, reloc); \
|
sym_map = RESOLVE_MAP (&ref, version, reloc); \
|
||||||
|
|
Loading…
Reference in New Issue