mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 01:50:48 +00:00
* 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.
This commit is contained in:
@@ -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;
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user