Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: elf2ecoff: Fix warning due to dead code.

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>

-4
-4
arch/mips/boot/elf2ecoff.c
··· 267 267 Elf32_Ehdr ex; 268 268 Elf32_Phdr *ph; 269 269 Elf32_Shdr *sh; 270 - char *shstrtab; 271 270 int i, pad; 272 271 struct sect text, data, bss; 273 272 struct filehdr efh; ··· 334 335 "sh"); 335 336 if (must_convert_endian) 336 337 convert_elf_shdrs(sh, ex.e_shnum); 337 - /* Read in the section string table. */ 338 - shstrtab = saveRead(infile, sh[ex.e_shstrndx].sh_offset, 339 - sh[ex.e_shstrndx].sh_size, "shstrtab"); 340 338 341 339 /* Figure out if we can cram the program header into an ECOFF 342 340 header... Basically, we can't handle anything but loadable