svn commit: r237258 - head/usr.sbin/kldxref
Eitan Adler
eadler at FreeBSD.org
Tue Jun 19 06:10:35 UTC 2012
Author: eadler
Date: Tue Jun 19 06:10:34 2012
New Revision: 237258
URL: http://svn.freebsd.org/changeset/base/237258
Log:
Remove variables which are initialized but never used thereafter reported by gcc46 warning
Approved by: cperciva
MFC After: 3 days
Modified:
head/usr.sbin/kldxref/ef.c
Modified: head/usr.sbin/kldxref/ef.c
==============================================================================
--- head/usr.sbin/kldxref/ef.c Tue Jun 19 06:10:31 2012 (r237257)
+++ head/usr.sbin/kldxref/ef.c Tue Jun 19 06:10:34 2012 (r237258)
@@ -532,7 +532,7 @@ ef_open(const char *filename, struct elf
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
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
ef->ef_segs[nsegs++] = phdr;
break;
case PT_PHDR:
- phphdr = phdr;
break;
case PT_DYNAMIC:
phdyn = phdr;
More information about the svn-src-head
mailing list