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/section.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'bfd/section.c') diff --git a/bfd/section.c b/bfd/section.c index 414a9cd..3e0aa2b 100644 --- a/bfd/section.c +++ b/bfd/section.c @@ -1,5 +1,5 @@ /* Object file "section" support for the BFD library. - Copyright (C) 1990, 91, 92, 93, 94, 95, 96, 1997 + Copyright (C) 1990, 91, 92, 93, 94, 95, 96, 97, 98, 1999 Free Software Foundation, Inc. Written by Cygnus Support. @@ -486,10 +486,14 @@ CODE_FRAGMENT static const asymbol global_syms[] = { /* the_bfd, name, value, attr, section [, udata] */ - {0, BFD_COM_SECTION_NAME, 0, BSF_SECTION_SYM, (asection *) &bfd_com_section}, - {0, BFD_UND_SECTION_NAME, 0, BSF_SECTION_SYM, (asection *) &bfd_und_section}, - {0, BFD_ABS_SECTION_NAME, 0, BSF_SECTION_SYM, (asection *) &bfd_abs_section}, - {0, BFD_IND_SECTION_NAME, 0, BSF_SECTION_SYM, (asection *) &bfd_ind_section}, + {0, BFD_COM_SECTION_NAME, 0, BSF_SECTION_SYM, + (asection *) &bfd_com_section, { 0 }}, + {0, BFD_UND_SECTION_NAME, 0, BSF_SECTION_SYM, + (asection *) &bfd_und_section, { 0 }}, + {0, BFD_ABS_SECTION_NAME, 0, BSF_SECTION_SYM, + (asection *) &bfd_abs_section, { 0 }}, + {0, BFD_IND_SECTION_NAME, 0, BSF_SECTION_SYM, + (asection *) &bfd_ind_section, { 0 }}, }; #define STD_SECTION(SEC, FLAGS, SYM, NAME, IDX) \ @@ -737,7 +741,7 @@ DESCRIPTION /*ARGSUSED*/ boolean bfd_set_section_flags (abfd, section, flags) - bfd *abfd; + bfd *abfd ATTRIBUTE_UNUSED; sec_ptr section; flagword flags; { -- cgit v1.1