diff options
author | eadler <eadler@FreeBSD.org> | 2012-06-19 06:09:58 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2012-06-19 06:09:58 +0000 |
commit | 8789fefa09b3b0d40dd606924f6ff216156b155d (patch) | |
tree | 1214782caf96c353521d8e996b3e4d4ee7357b31 /usr.sbin/crunch/crunchide/exec_elf32.c | |
parent | a6ace6deb5e6eeca977403c0b06dad5a0f59c669 (diff) | |
download | FreeBSD-src-8789fefa09b3b0d40dd606924f6ff216156b155d.zip FreeBSD-src-8789fefa09b3b0d40dd606924f6ff216156b155d.tar.gz |
Remove variables which are initialized but never used thereafter reported by gcc46 warning
Approved by: cperciva
MFC After: 3 days
Diffstat (limited to 'usr.sbin/crunch/crunchide/exec_elf32.c')
-rw-r--r-- | usr.sbin/crunch/crunchide/exec_elf32.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/crunch/crunchide/exec_elf32.c b/usr.sbin/crunch/crunchide/exec_elf32.c index 2b2e27f..d01fe7e 100644 --- a/usr.sbin/crunch/crunchide/exec_elf32.c +++ b/usr.sbin/crunch/crunchide/exec_elf32.c @@ -238,7 +238,7 @@ ELFNAMEEND(hide)(int fd, const char *fn) Elf_Shdr *shdrp = NULL, *symtabshdr, *strtabshdr; Elf_Sym *symtabp = NULL; char *strtabp = NULL; - Elf_Size nsyms, nlocalsyms, ewi; + Elf_Size nsyms, ewi; ssize_t shdrsize; int rv, i, weird; size_t nstrtab_size, nstrtab_nextoff, fn_size; @@ -327,7 +327,6 @@ ELFNAMEEND(hide)(int fd, const char *fn) /* Prepare data structures for symbol movement. */ nsyms = xewtoh(symtabshdr->sh_size) / xewtoh(symtabshdr->sh_entsize); - nlocalsyms = xe32toh(symtabshdr->sh_info); /* move symbols, making them local */ for (ewi = 0; ewi < nsyms; ewi++) { |