Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jun 2012 05:42:05 +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-9@freebsd.org
Subject:   svn commit: r237424 - stable/9/usr.sbin/crunch/crunchide
Message-ID:  <201206220542.q5M5g5e4058738@svn.freebsd.org>

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

Log:
  MFC r237254:
  	Remove variables which are initialized but never used thereafter reported by gcc46 warning
  
  PR:		bin/163847
  Approved by:	cperciva (implicit)

Modified:
  stable/9/usr.sbin/crunch/crunchide/exec_elf32.c
Directory Properties:
  stable/9/usr.sbin/crunch/   (props changed)

Modified: stable/9/usr.sbin/crunch/crunchide/exec_elf32.c
==============================================================================
--- stable/9/usr.sbin/crunch/crunchide/exec_elf32.c	Fri Jun 22 05:40:15 2012	(r237423)
+++ stable/9/usr.sbin/crunch/crunchide/exec_elf32.c	Fri Jun 22 05:42:05 2012	(r237424)
@@ -238,7 +238,7 @@ ELFNAMEEND(hide)(int fd, const char *fn)
 	Elf_Shdr *shdrp = NULL, *symtabshdr, *strtabshdr;
 	Elf_Sym *symtabp = NULL;
 	char *strtabp = NULL;
-	Elf_Size  nsyms, nlocalsyms, ewi;
+	Elf_Size  nsyms, ewi;
 	ssize_t shdrsize;
 	int rv, i, weird;
 	size_t nstrtab_size, nstrtab_nextoff, fn_size;
@@ -327,7 +327,6 @@ ELFNAMEEND(hide)(int fd, const char *fn)
 
 	/* Prepare data structures for symbol movement. */
 	nsyms = xewtoh(symtabshdr->sh_size) / xewtoh(symtabshdr->sh_entsize);
-	nlocalsyms = xe32toh(symtabshdr->sh_info);
 
 	/* move symbols, making them local */
 	for (ewi = 0; ewi < nsyms; ewi++) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206220542.q5M5g5e4058738>