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
This commit is contained in:
parent
f17a6f1b17
commit
097cd85002
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user