From 7442e600c8d771f2d03c6df7415bbfcbf99759b6 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sun, 11 Jul 1999 19:49:48 +0000 Subject: * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSED as appropriate. Fill in structure initializations. Add variable initializations. Add casts. * dwarf1.c (parse_line_table): Change eachLine to unsigned long. (dwarf1_unit_find_nearest_line): Change i to unsigned long. --- bfd/binary.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bfd/binary.c') diff --git a/bfd/binary.c b/bfd/binary.c index 6c63fff..b5b2fad 100644 --- a/bfd/binary.c +++ b/bfd/binary.c @@ -58,7 +58,7 @@ static int binary_sizeof_headers PARAMS ((bfd *, boolean)); static boolean binary_mkobject (abfd) - bfd *abfd; + bfd *abfd ATTRIBUTE_UNUSED; { return true; } @@ -112,7 +112,7 @@ binary_object_p (abfd) static boolean binary_get_section_contents (abfd, section, location, offset, count) bfd *abfd; - asection *section; + asection *section ATTRIBUTE_UNUSED; PTR location; file_ptr offset; bfd_size_type count; @@ -127,7 +127,7 @@ binary_get_section_contents (abfd, section, location, offset, count) static long binary_get_symtab_upper_bound (abfd) - bfd *abfd; + bfd *abfd ATTRIBUTE_UNUSED; { return (BIN_SYMS + 1) * sizeof (asymbol *); } @@ -222,7 +222,7 @@ binary_make_empty_symbol (abfd) static void binary_get_symbol_info (ignore_abfd, symbol, ret) - bfd *ignore_abfd; + bfd *ignore_abfd ATTRIBUTE_UNUSED; asymbol *symbol; symbol_info *ret; { @@ -318,8 +318,8 @@ binary_set_section_contents (abfd, sec, data, offset, size) static int binary_sizeof_headers (abfd, exec) - bfd *abfd; - boolean exec; + bfd *abfd ATTRIBUTE_UNUSED; + boolean exec ATTRIBUTE_UNUSED; { return 0; } -- cgit v1.1