mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-12 14:29:28 +00:00
Remove variables which are initialized but never used thereafter reported by gcc46 warning
Approved by: cperciva MFC After: 3 days
This commit is contained in:
parent
c84c09f445
commit
7e22d9ed96
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=237258
@ -532,7 +532,7 @@ ef_open(const char *filename, struct elf_file *efile, int verbose)
|
||||
int error;
|
||||
int phlen, res;
|
||||
int nsegs;
|
||||
Elf_Phdr *phdr, *phdyn, *phphdr, *phlimit;
|
||||
Elf_Phdr *phdr, *phdyn, *phlimit;
|
||||
|
||||
if (filename == NULL)
|
||||
return EFTYPE;
|
||||
@ -576,7 +576,6 @@ ef_open(const char *filename, struct elf_file *efile, int verbose)
|
||||
phlimit = phdr + hdr->e_phnum;
|
||||
nsegs = 0;
|
||||
phdyn = NULL;
|
||||
phphdr = NULL;
|
||||
while (phdr < phlimit) {
|
||||
if (verbose > 1)
|
||||
ef_print_phdr(phdr);
|
||||
@ -590,7 +589,6 @@ ef_open(const char *filename, struct elf_file *efile, int verbose)
|
||||
ef->ef_segs[nsegs++] = phdr;
|
||||
break;
|
||||
case PT_PHDR:
|
||||
phphdr = phdr;
|
||||
break;
|
||||
case PT_DYNAMIC:
|
||||
phdyn = phdr;
|
||||
|
Loading…
Reference in New Issue
Block a user