Skip to content

Commit

Permalink
MIPS: elf2ecoff: Fix warning due to dead code.
Browse files Browse the repository at this point in the history
  HOSTCC  arch/mips/boot/elf2ecoff
arch/mips/boot/elf2ecoff.c: In function ‘main’:
arch/mips/boot/elf2ecoff.c:271:8: warning: variable ‘shstrtab’ set but not used [-Wunused-but-set-variable]
  char *shstrtab;

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Feb 4, 2015
1 parent 7b09777 commit 2d76e96
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/mips/boot/elf2ecoff.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ int main(int argc, char *argv[])
Elf32_Ehdr ex;
Elf32_Phdr *ph;
Elf32_Shdr *sh;
char *shstrtab;
int i, pad;
struct sect text, data, bss;
struct filehdr efh;
Expand Down Expand Up @@ -335,9 +334,6 @@ int main(int argc, char *argv[])
"sh");
if (must_convert_endian)
convert_elf_shdrs(sh, ex.e_shnum);
/* Read in the section string table. */
shstrtab = saveRead(infile, sh[ex.e_shstrndx].sh_offset,
sh[ex.e_shstrndx].sh_size, "shstrtab");

/* Figure out if we can cram the program header into an ECOFF
header... Basically, we can't handle anything but loadable
Expand Down

0 comments on commit 2d76e96

Please sign in to comment.