fix gcc warnings

This commit is contained in:
Alan Modra
2000-05-02 02:29:17 +00:00
parent 99a4150f8b
commit 0f371bb497
4 changed files with 25 additions and 18 deletions

View File

@ -1,3 +1,9 @@
2000-05-02 Kazu Hirata <kazu@hxi.com>
* coffgrok.c: Add ATTRIBUTE_UNUSED as appropriate.
* srconv.c: Likewise.
* sysdump.c: Likewise.
Sun Apr 23 14:23:26 2000 Denis Chertykov <denisc@overta.ru> Sun Apr 23 14:23:26 2000 Denis Chertykov <denisc@overta.ru>
* readelf.c (guess_is_rela): AVR uses RELA relocations. * readelf.c (guess_is_rela): AVR uses RELA relocations.

View File

@ -245,7 +245,7 @@ static
struct coff_line * struct coff_line *
do_lines (i, name) do_lines (i, name)
int i; int i;
char *name; char *name ATTRIBUTE_UNUSED;
{ {
struct coff_line *res = (struct coff_line *) xcalloc (sizeof (struct coff_line), 1); struct coff_line *res = (struct coff_line *) xcalloc (sizeof (struct coff_line), 1);
asection *s; asection *s;

View File

@ -224,7 +224,7 @@ writeBARRAY (data, ptr, idx, size, file)
barray data; barray data;
char *ptr; char *ptr;
int *idx; int *idx;
int size; int size ATTRIBUTE_UNUSED;
FILE *file; FILE *file;
{ {
int i; int i;
@ -299,7 +299,7 @@ wr_un (ptr, sfile, first, nsecs)
struct coff_ofile *ptr; struct coff_ofile *ptr;
struct coff_sfile *sfile; struct coff_sfile *sfile;
int first; int first;
int nsecs; int nsecs ATTRIBUTE_UNUSED;
{ {
struct IT_un un; struct IT_un un;
@ -438,7 +438,7 @@ wr_hd (p)
static void static void
wr_sh (p, sec) wr_sh (p, sec)
struct coff_ofile *p; struct coff_ofile *p ATTRIBUTE_UNUSED;
struct coff_section *sec; struct coff_section *sec;
{ {
struct IT_sh sh; struct IT_sh sh;
@ -453,7 +453,7 @@ wr_sh (p, sec)
static void static void
wr_ob (p, section) wr_ob (p, section)
struct coff_ofile *p; struct coff_ofile *p ATTRIBUTE_UNUSED;
struct coff_section *section; struct coff_section *section;
{ {
bfd_size_type i; bfd_size_type i;
@ -514,7 +514,7 @@ wr_ob (p, section)
static void static void
wr_rl (ptr, sec) wr_rl (ptr, sec)
struct coff_ofile *ptr; struct coff_ofile *ptr ATTRIBUTE_UNUSED;
struct coff_section *sec; struct coff_section *sec;
{ {
int nr = sec->nrelocs; int nr = sec->nrelocs;
@ -586,7 +586,7 @@ wr_object_body (p)
static void static void
wr_dps_start (sfile, section, scope, type, nest) wr_dps_start (sfile, section, scope, type, nest)
struct coff_sfile *sfile; struct coff_sfile *sfile;
struct coff_section *section; struct coff_section *section ATTRIBUTE_UNUSED;
struct coff_scope *scope; struct coff_scope *scope;
int type; int type;
int nest; int nest;
@ -623,8 +623,8 @@ wr_dps_start (sfile, section, scope, type, nest)
static void static void
wr_dps_end (section, scope, type) wr_dps_end (section, scope, type)
struct coff_section *section; struct coff_section *section ATTRIBUTE_UNUSED;
struct coff_scope *scope; struct coff_scope *scope ATTRIBUTE_UNUSED;
int type; int type;
{ {
struct IT_dps dps; struct IT_dps dps;
@ -960,7 +960,7 @@ walk_tree_type (sfile, symbol, type, nest)
static void static void
walk_tree_symbol (sfile, section, symbol, nest) walk_tree_symbol (sfile, section, symbol, nest)
struct coff_sfile *sfile; struct coff_sfile *sfile;
struct coff_section *section; struct coff_section *section ATTRIBUTE_UNUSED;
struct coff_symbol *symbol; struct coff_symbol *symbol;
int nest; int nest;
{ {
@ -1329,7 +1329,7 @@ wr_du (p, sfile, n)
static void static void
wr_dus (p, sfile) wr_dus (p, sfile)
struct coff_ofile *p; struct coff_ofile *p ATTRIBUTE_UNUSED;
struct coff_sfile *sfile; struct coff_sfile *sfile;
{ {
@ -1373,11 +1373,12 @@ find_base (sfile, section)
{ {
return sfile->section[section->number].low; return sfile->section[section->number].low;
} }
static void static void
wr_dln (p, sfile, n) wr_dln (p, sfile, n)
struct coff_ofile *p; struct coff_ofile *p ATTRIBUTE_UNUSED;
struct coff_sfile *sfile; struct coff_sfile *sfile;
int n; int n ATTRIBUTE_UNUSED;
{ {
#if 0 #if 0
@ -1517,7 +1518,7 @@ static void
wr_globals (p, sfile, n) wr_globals (p, sfile, n)
struct coff_ofile *p; struct coff_ofile *p;
struct coff_sfile *sfile; struct coff_sfile *sfile;
int n; int n ATTRIBUTE_UNUSED;
{ {
struct coff_symbol *sy; struct coff_symbol *sy;
for (sy = p->symbol_list_head; for (sy = p->symbol_list_head;
@ -1734,7 +1735,7 @@ return scount;
static void static void
wr_er (ptr, sfile, first) wr_er (ptr, sfile, first)
struct coff_ofile *ptr; struct coff_ofile *ptr;
struct coff_sfile *sfile; struct coff_sfile *sfile ATTRIBUTE_UNUSED;
int first; int first;
{ {
int idx = 0; int idx = 0;
@ -1760,7 +1761,7 @@ wr_er (ptr, sfile, first)
static void static void
wr_ed (ptr, sfile, first) wr_ed (ptr, sfile, first)
struct coff_ofile *ptr; struct coff_ofile *ptr;
struct coff_sfile *sfile; struct coff_sfile *sfile ATTRIBUTE_UNUSED;
int first; int first;
{ {
struct coff_symbol *s; struct coff_symbol *s;

View File

@ -131,8 +131,8 @@ barray
getBARRAY (ptr, idx, dsize, max) getBARRAY (ptr, idx, dsize, max)
unsigned char *ptr; unsigned char *ptr;
int *idx; int *idx;
int dsize; int dsize ATTRIBUTE_UNUSED;
int max; int max ATTRIBUTE_UNUSED;
{ {
barray res; barray res;
int i; int i;