diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2015-02-04 07:04:03 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-02-04 08:42:27 -0500 |
commit | 2d76e9633b572ae5a64150b638eed77f4afc12db (patch) | |
tree | 8ee7ad98bbf358a8d3521bb43e00af1569f4926a | |
parent | 7b09777c187dcbe3e0f4f53890eb2f6953801d88 (diff) |
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>
-rw-r--r-- | arch/mips/boot/elf2ecoff.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/mips/boot/elf2ecoff.c b/arch/mips/boot/elf2ecoff.c index 8585078ae50e..bef06453edc0 100644 --- a/arch/mips/boot/elf2ecoff.c +++ b/arch/mips/boot/elf2ecoff.c | |||
@@ -267,7 +267,6 @@ int main(int argc, char *argv[]) | |||
267 | Elf32_Ehdr ex; | 267 | Elf32_Ehdr ex; |
268 | Elf32_Phdr *ph; | 268 | Elf32_Phdr *ph; |
269 | Elf32_Shdr *sh; | 269 | Elf32_Shdr *sh; |
270 | char *shstrtab; | ||
271 | int i, pad; | 270 | int i, pad; |
272 | struct sect text, data, bss; | 271 | struct sect text, data, bss; |
273 | struct filehdr efh; | 272 | struct filehdr efh; |
@@ -335,9 +334,6 @@ int main(int argc, char *argv[]) | |||
335 | "sh"); | 334 | "sh"); |
336 | if (must_convert_endian) | 335 | if (must_convert_endian) |
337 | convert_elf_shdrs(sh, ex.e_shnum); | 336 | convert_elf_shdrs(sh, ex.e_shnum); |
338 | /* Read in the section string table. */ | ||
339 | shstrtab = saveRead(infile, sh[ex.e_shstrndx].sh_offset, | ||
340 | sh[ex.e_shstrndx].sh_size, "shstrtab"); | ||
341 | 337 | ||
342 | /* Figure out if we can cram the program header into an ECOFF | 338 | /* Figure out if we can cram the program header into an ECOFF |
343 | header... Basically, we can't handle anything but loadable | 339 | header... Basically, we can't handle anything but loadable |