diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-07-11 19:49:48 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-07-11 19:49:48 +0000 |
commit | 4126d3ea95f48508addd8cb4d2739b8f77307f7a (patch) | |
tree | f53883e0e162453d9f5cb65fba1a61363ec3308a /bfd/dwarf1.c | |
parent | b452a91aed9179442537f304cd1d31c5ed81b9aa (diff) | |
download | gdb-4126d3ea95f48508addd8cb4d2739b8f77307f7a.tar.gz |
* 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.
Diffstat (limited to 'bfd/dwarf1.c')
-rw-r--r-- | bfd/dwarf1.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bfd/dwarf1.c b/bfd/dwarf1.c index d87df92c10f..903bfc38ab5 100644 --- a/bfd/dwarf1.c +++ b/bfd/dwarf1.c @@ -1,5 +1,5 @@ /* DWARF 1 find nearest line (_bfd_dwarf1_find_nearest_line). - Copyright 1998 Free Software Foundation, Inc. + Copyright 1998, 1999 Free Software Foundation, Inc. Written by Gavin Romig-Koch of Cygnus Solutions (gavin@cygnus.com). @@ -291,7 +291,7 @@ parse_line_table (stash, aUnit) xptr = stash->line_section + aUnit->stmt_list_offset; if (xptr < stash->line_section_end) { - int eachLine; + unsigned long eachLine; char* tblend; unsigned long base; @@ -398,7 +398,7 @@ dwarf1_unit_find_nearest_line (stash, aUnit, addr, { if (aUnit->has_stmt_list) { - int i; + unsigned long i; struct dwarf1_func* eachFunc; if (! aUnit->linenumber_table) @@ -454,7 +454,7 @@ _bfd_dwarf1_find_nearest_line (abfd, section, symbols, offset, filename_ptr, functionname_ptr, linenumber_ptr) bfd *abfd; asection *section; - asymbol **symbols; + asymbol **symbols ATTRIBUTE_UNUSED; bfd_vma offset; const char **filename_ptr; const char **functionname_ptr; |