Skip site navigation (1)Skip section navigation (2)
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-8@freebsd.org
Subject:   svn commit: r237416 - stable/8/usr.sbin/kldxref
Message-ID:  <201206220523.q5M5Nnd0057532@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Fri Jun 22 05:23:49 2012
New Revision: 237416
URL: http://svn.freebsd.org/changeset/base/237416

Log:
  MFC r237258:
  	Remove variables which are initialized but never used thereafter reported by gcc46 warning
  
  Approved by:	cperciva (implicit)

Modified:
  stable/8/usr.sbin/kldxref/ef.c
Directory Properties:
  stable/8/usr.sbin/kldxref/   (props changed)

Modified: stable/8/usr.sbin/kldxref/ef.c
==============================================================================
--- stable/8/usr.sbin/kldxref/ef.c	Fri Jun 22 05:23:39 2012	(r237415)
+++ stable/8/usr.sbin/kldxref/ef.c	Fri Jun 22 05:23:49 2012	(r237416)
@@ -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.q5M5Nnd0057532>