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;
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to