aboutsummaryrefslogtreecommitdiff
path: root/gas/listing.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-07-11 20:20:04 +0000
committerIan Lance Taylor <ian@airs.com>1999-07-11 20:20:04 +0000
commitab9da554193906c4406d4d5eadfc24ea8f521558 (patch)
tree77c3d4f23c655a31a54e39196741eeab8a094dd0 /gas/listing.c
parent85e5d57188f418c0517892818a40b0806c5659c3 (diff)
downloadgdb-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/listing.c')
-rw-r--r--gas/listing.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gas/listing.c b/gas/listing.c
index acda916..1ab0dde 100644
--- a/gas/listing.c
+++ b/gas/listing.c
@@ -978,7 +978,7 @@ debugging_pseudo (list, line)
static void
listing_listing (name)
- char *name;
+ char *name ATTRIBUTE_UNUSED;
{
list_info_type *list = head;
file_info_type *current_hll_file = (file_info_type *) NULL;
@@ -1006,7 +1006,7 @@ listing_listing (name)
while (list)
{
- int list_line;
+ unsigned int list_line;
width = listing_rhs_width > paper_width ? paper_width :
listing_rhs_width;
@@ -1180,7 +1180,7 @@ listing_file (name)
void
listing_eject (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
if (listing)
listing_tail->edict = EDICT_EJECT;
@@ -1188,7 +1188,7 @@ listing_eject (ignore)
void
listing_flags (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
while ((*input_line_pointer++) && (*input_line_pointer != '\n'))
input_line_pointer++;
@@ -1261,7 +1261,7 @@ listing_psize (width_only)
void
listing_nopage (ignore)
- int ignore;
+ int ignore ATTRIBUTE_UNUSED;
{
paper_height = 0;
}