summaryrefslogtreecommitdiff
path: root/binutils/stabs.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-07-11 20:02:30 +0000
committerIan Lance Taylor <ian@airs.com>1999-07-11 20:02:30 +0000
commit38047acd256fb07ad7b6f6d7a380cbb1c3fbc0ae (patch)
tree182fa4d73b56e2bf66ac59ef648975b0b31a98fb /binutils/stabs.c
parentd3f2d3dd7467877bcd6e4547064cdb33b7786a75 (diff)
downloadbinutils-redhat-38047acd256fb07ad7b6f6d7a380cbb1c3fbc0ae.tar.gz
* Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
as appropriate. Add variable initializations. Add casts. * objdump.c (disassemble_bytes): Change j to bfd_vma. * readelf.c (process_syminfo): Change i to unsigned int. (display_debug_info): Change abbrev_number to unsigned long. (process_mips_specific): Change fcnt to size_t.
Diffstat (limited to 'binutils/stabs.c')
-rw-r--r--binutils/stabs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/binutils/stabs.c b/binutils/stabs.c
index 945f87645e..53e1070c8b 100644
--- a/binutils/stabs.c
+++ b/binutils/stabs.c
@@ -375,7 +375,7 @@ warn_stab (p, err)
/*ARGSUSED*/
PTR
start_stab (dhandle, abfd, sections, syms, symcount)
- PTR dhandle;
+ PTR dhandle ATTRIBUTE_UNUSED;
bfd *abfd;
boolean sections;
asymbol **syms;
@@ -1818,7 +1818,7 @@ parse_stab_range_type (dhandle, info, typename, pp, typenums)
return debug_make_int_type (dhandle, 1, true);
else if (n3 == 0xffff)
return debug_make_int_type (dhandle, 2, true);
- else if (n3 == 0xffffffff)
+ else if (n3 == (bfd_signed_vma) 0xffffffff)
return debug_make_int_type (dhandle, 4, true);
#ifdef BFD64
else if (n3 == ((((bfd_vma) 0xffffffff) << 32) | 0xffffffff))
@@ -3439,7 +3439,7 @@ stab_find_type (dhandle, info, typenums)
static boolean
stab_record_type (dhandle, info, typenums, type)
- PTR dhandle;
+ PTR dhandle ATTRIBUTE_UNUSED;
struct stab_handle *info;
const int *typenums;
debug_type type;
@@ -4513,7 +4513,7 @@ stab_demangle_template (minfo, pp, pname)
static boolean
stab_demangle_class (minfo, pp, pstart)
- struct stab_demangle_info *minfo;
+ struct stab_demangle_info *minfo ATTRIBUTE_UNUSED;
const char **pp;
const char **pstart;
{