Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/dist/toolchain/bfd Kill a "comparison always false" warn...
details: https://anonhg.NetBSD.org/src/rev/cc1c244b1b24
branches: trunk
changeset: 526580:cc1c244b1b24
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon May 06 17:59:18 2002 +0000
description:
Kill a "comparison always false" warning from gcc-current on LP64 platforms.
XXX Should discuss making the sh_name member of the Elf_Internal_Shdr
a bfd_size_type with the binutils folks.
diffstat:
gnu/dist/toolchain/bfd/elf.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 6ce62453e602 -r cc1c244b1b24 gnu/dist/toolchain/bfd/elf.c
--- a/gnu/dist/toolchain/bfd/elf.c Mon May 06 16:24:45 2002 +0000
+++ b/gnu/dist/toolchain/bfd/elf.c Mon May 06 17:59:18 2002 +0000
@@ -1708,7 +1708,8 @@
this_hdr->sh_name = (unsigned long) _bfd_stringtab_add (elf_shstrtab (abfd),
asect->name,
true, false);
- if (this_hdr->sh_name == (unsigned long) -1)
+ /* XXXJRT consider making sh_name a bfd_size_type */
+ if (this_hdr->sh_name == (unsigned int) -1)
{
*failedptr = true;
return;
Home |
Main Index |
Thread Index |
Old Index