diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-07-11 20:20:04 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-07-11 20:20:04 +0000 |
commit | ab9da554193906c4406d4d5eadfc24ea8f521558 (patch) | |
tree | 77c3d4f23c655a31a54e39196741eeab8a094dd0 /gas/write.c | |
parent | 85e5d57188f418c0517892818a40b0806c5659c3 (diff) | |
download | gdb-ab9da554193906c4406d4d5eadfc24ea8f521558.zip gdb-ab9da554193906c4406d4d5eadfc24ea8f521558.tar.gz gdb-ab9da554193906c4406d4d5eadfc24ea8f521558.tar.bz2 |
* Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED
as appropriate. Fill in structure initializations. Add variable
initializations. Add casts.
* dwarf2dbg.c (print_stats): Change i to size_t.
* listing.c (listing_listing): Change list_line to unsigned int.
Diffstat (limited to 'gas/write.c')
-rw-r--r-- | gas/write.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/gas/write.c b/gas/write.c index d0a9ac6..ed74709 100644 --- a/gas/write.c +++ b/gas/write.c @@ -382,7 +382,7 @@ record_alignment (seg, align) static void renumber_sections (abfd, sec, countparg) - bfd *abfd; + bfd *abfd ATTRIBUTE_UNUSED; asection *sec; PTR countparg; { @@ -433,9 +433,9 @@ chain_frchains_together_1 (section, frchp) static void chain_frchains_together (abfd, section, xxx) - bfd *abfd; /* unused */ + bfd *abfd ATTRIBUTE_UNUSED; segT section; - PTR xxx; /* unused */ + PTR xxx ATTRIBUTE_UNUSED; { segment_info_type *info; @@ -578,7 +578,7 @@ static void relax_and_size_seg (abfd, sec, xxx) bfd *abfd; asection *sec; - PTR xxx; + PTR xxx ATTRIBUTE_UNUSED; { flagword flags; fragS *fragp; @@ -688,9 +688,9 @@ dump_section_relocs (abfd, sec, stream_) static void adjust_reloc_syms (abfd, sec, xxx) - bfd *abfd; + bfd *abfd ATTRIBUTE_UNUSED; asection *sec; - PTR xxx; + PTR xxx ATTRIBUTE_UNUSED; { segment_info_type *seginfo = seg_info (sec); fixS *fixp; @@ -889,7 +889,7 @@ static void write_relocs (abfd, sec, xxx) bfd *abfd; asection *sec; - PTR xxx; + PTR xxx ATTRIBUTE_UNUSED; { segment_info_type *seginfo = seg_info (sec); int i; @@ -1088,9 +1088,9 @@ write_relocs (abfd, sec, xxx) static void write_contents (abfd, sec, xxx) - bfd *abfd; + bfd *abfd ATTRIBUTE_UNUSED; asection *sec; - PTR xxx; + PTR xxx ATTRIBUTE_UNUSED; { segment_info_type *seginfo = seg_info (sec); unsigned long offset = 0; @@ -2769,7 +2769,8 @@ fixup_segment (fixP, this_segment_type) } /* not a bit fix */ #ifdef TC_VALIDATE_FIX - skip: ; + skip: ATTRIBUTE_UNUSED_LABEL + ; #endif #ifdef DEBUG5 fprintf (stderr, "result:\n"); |