Date: Fri, 22 Jun 2012 05:23:49 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r237417 - stable/7/usr.sbin/kldxref Message-ID: <201206220523.q5M5NnqV057536@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eadler Date: Fri Jun 22 05:23:49 2012 New Revision: 237417 URL: http://svn.freebsd.org/changeset/base/237417 Log: MFC r237258: Remove variables which are initialized but never used thereafter reported by gcc46 warning Approved by: cperciva (implicit) Modified: stable/7/usr.sbin/kldxref/ef.c Directory Properties: stable/7/usr.sbin/kldxref/ (props changed) Modified: stable/7/usr.sbin/kldxref/ef.c ============================================================================== --- stable/7/usr.sbin/kldxref/ef.c Fri Jun 22 05:23:49 2012 (r237416) +++ stable/7/usr.sbin/kldxref/ef.c Fri Jun 22 05:23:49 2012 (r237417) @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206220523.q5M5NnqV057536>