diff options
author | eadler <eadler@FreeBSD.org> | 2012-02-16 05:16:55 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2012-02-16 05:16:55 +0000 |
commit | bbec9d256ee28bd17c23b64948aae29399eaf643 (patch) | |
tree | b90eba8f5cdf47270a6ac6d57f6f8a347c8116ab /usr.bin/elfdump/elfdump.c | |
parent | c7937266c45724c031210b2fbbf18b4f20c06ccb (diff) | |
download | FreeBSD-src-bbec9d256ee28bd17c23b64948aae29399eaf643.zip FreeBSD-src-bbec9d256ee28bd17c23b64948aae29399eaf643.tar.gz |
Don't extract the n_type value from the elf header, since it is never used
Fix warning when compiling with gcc46:
variable 'type' set but not used
Approved by: cperciva
MFC after: 3 days
Diffstat (limited to 'usr.bin/elfdump/elfdump.c')
-rw-r--r-- | usr.bin/elfdump/elfdump.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/usr.bin/elfdump/elfdump.c b/usr.bin/elfdump/elfdump.c index 9acb503..99ae8bf 100644 --- a/usr.bin/elfdump/elfdump.c +++ b/usr.bin/elfdump/elfdump.c @@ -904,7 +904,6 @@ elf_print_note(Elf32_Ehdr *e, void *sh) u_int64_t name; u_int32_t namesz; u_int32_t descsz; - u_int32_t type; u_int32_t desc; char *n, *s; @@ -916,7 +915,6 @@ elf_print_note(Elf32_Ehdr *e, void *sh) while (n < ((char *)e + offset + size)) { namesz = elf_get_word(e, n, N_NAMESZ); descsz = elf_get_word(e, n, N_DESCSZ); - type = elf_get_word(e, n, N_TYPE); s = n + sizeof(Elf_Note); desc = elf_get_word(e, n + sizeof(Elf_Note) + namesz, 0); fprintf(out, "\t%s %d\n", s, desc); |