aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-sh.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2002-02-11 02:17:39 +0000
committerDaniel Jacobowitz <drow@false.org>2002-02-11 02:17:39 +0000
commitd426c6b07f24df631df0e290bf3034b61498aee5 (patch)
treec79fa062451fa1d359dbe5543e1247e6d98bce5f /bfd/elf32-sh.c
parentcd0b1e215c70e35da5d67ca09f0108278ed5f0b6 (diff)
downloadgdb-d426c6b07f24df631df0e290bf3034b61498aee5.zip
gdb-d426c6b07f24df631df0e290bf3034b61498aee5.tar.gz
gdb-d426c6b07f24df631df0e290bf3034b61498aee5.tar.bz2
2002-02-10 Daniel Jacobowitz <drow@mvista.com>
* coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized variable warnings. * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned comparison warning. * trad-core.c (trad_unix_core_file_p): Silence pointer/integer cast warnings for the common case.
Diffstat (limited to 'bfd/elf32-sh.c')
-rw-r--r--bfd/elf32-sh.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf32-sh.c b/bfd/elf32-sh.c
index 150d912..d603345 100644
--- a/bfd/elf32-sh.c
+++ b/bfd/elf32-sh.c
@@ -2066,7 +2066,8 @@ sh_elf_relax_section (abfd, sec, link_info, again)
shndx = shndx_buf + (shndx_buf ? ELF32_R_SYM (irelfn->r_info) : 0);
bfd_elf32_swap_symbol_in (abfd, esym, shndx, &isym);
- if (isym.st_shndx != _bfd_elf_section_from_bfd_section (abfd, sec))
+ if (isym.st_shndx
+ != (unsigned int) _bfd_elf_section_from_bfd_section (abfd, sec))
{
((*_bfd_error_handler)
(_("%s: 0x%lx: warning: symbol in unexpected section"),