From owner-svn-src-all@FreeBSD.ORG Fri Jun 22 05:23:49 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EBCD110657A3; Fri, 22 Jun 2012 05:23:49 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D60EA8FC0A; Fri, 22 Jun 2012 05:23:49 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q5M5Nnc6057534; Fri, 22 Jun 2012 05:23:49 GMT (envelope-from eadler@svn.freebsd.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q5M5Nnd0057532; Fri, 22 Jun 2012 05:23:49 GMT (envelope-from eadler@svn.freebsd.org) Message-Id: <201206220523.q5M5Nnd0057532@svn.freebsd.org> From: Eitan Adler Date: Fri, 22 Jun 2012 05:23:49 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r237416 - stable/8/usr.sbin/kldxref X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jun 2012 05:23:50 -0000 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;