diff options
author | Alan Modra <amodra@gmail.com> | 2005-02-16 02:38:53 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2005-02-16 02:38:53 +0000 |
commit | 5ff625e9757a8839b58ee06e09844dc97b6c23d4 (patch) | |
tree | 9caf2c89a36106a50b903fd447d7cb1e94ad75da /bfd/coff-arm.c | |
parent | 92b7a70fca9da1403097b63f62afb5f4e634b6a8 (diff) | |
download | gdb-5ff625e9757a8839b58ee06e09844dc97b6c23d4.zip gdb-5ff625e9757a8839b58ee06e09844dc97b6c23d4.tar.gz gdb-5ff625e9757a8839b58ee06e09844dc97b6c23d4.tar.bz2 |
* coff-arm.c (coff_arm_is_local_label_name): Warning fix.
* elf32-frv.c (frvfdpic_relocs_info_hash): Likewise.
* pef.c (bfd_pef_scan): Don't ignore return value of
bfd_pef_scan_start_address.
Diffstat (limited to 'bfd/coff-arm.c')
-rw-r--r-- | bfd/coff-arm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bfd/coff-arm.c b/bfd/coff-arm.c index c6580a8..c336285 100644 --- a/bfd/coff-arm.c +++ b/bfd/coff-arm.c @@ -1,6 +1,6 @@ /* BFD back-end for ARM COFF files. Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, - 2000, 2001, 2002, 2003, 2004 + 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. Written by Cygnus Support. @@ -2504,7 +2504,9 @@ coff_arm_is_local_label_name (abfd, name) #ifdef USER_LABEL_PREFIX if (USER_LABEL_PREFIX[0] != 0) { - if (strncmp (name, USER_LABEL_PREFIX, strlen (USER_LABEL_PREFIX)) == 0) + size_t len = strlen (USER_LABEL_PREFIX); + + if (strncmp (name, USER_LABEL_PREFIX, len) == 0) return FALSE; } #endif |