/* srconv.c -- Sysroff conversion program
- Copyright (C) 1994, 95, 96, 98, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1994, 95, 96, 98, 99, 2000 Free Software Foundation, Inc.
This file is part of GNU Binutils.
barray data;
char *ptr;
int *idx;
- int size;
+ int size ATTRIBUTE_UNUSED;
FILE *file;
{
int i;
struct coff_ofile *ptr;
struct coff_sfile *sfile;
int first;
- int nsecs;
+ int nsecs ATTRIBUTE_UNUSED;
{
struct IT_un un;
static void
wr_sh (p, sec)
- struct coff_ofile *p;
+ struct coff_ofile *p ATTRIBUTE_UNUSED;
struct coff_section *sec;
{
struct IT_sh sh;
static void
wr_ob (p, section)
- struct coff_ofile *p;
+ struct coff_ofile *p ATTRIBUTE_UNUSED;
struct coff_section *section;
{
bfd_size_type i;
static void
wr_rl (ptr, sec)
- struct coff_ofile *ptr;
+ struct coff_ofile *ptr ATTRIBUTE_UNUSED;
struct coff_section *sec;
{
int nr = sec->nrelocs;
static void
wr_dps_start (sfile, section, scope, type, nest)
struct coff_sfile *sfile;
- struct coff_section *section;
+ struct coff_section *section ATTRIBUTE_UNUSED;
struct coff_scope *scope;
int type;
int nest;
static void
wr_dps_end (section, scope, type)
- struct coff_section *section;
- struct coff_scope *scope;
+ struct coff_section *section ATTRIBUTE_UNUSED;
+ struct coff_scope *scope ATTRIBUTE_UNUSED;
int type;
{
struct IT_dps dps;
static void
walk_tree_symbol (sfile, section, symbol, nest)
struct coff_sfile *sfile;
- struct coff_section *section;
+ struct coff_section *section ATTRIBUTE_UNUSED;
struct coff_symbol *symbol;
int nest;
{
static void
wr_dus (p, sfile)
- struct coff_ofile *p;
+ struct coff_ofile *p ATTRIBUTE_UNUSED;
struct coff_sfile *sfile;
{
{
return sfile->section[section->number].low;
}
+
static void
wr_dln (p, sfile, n)
- struct coff_ofile *p;
+ struct coff_ofile *p ATTRIBUTE_UNUSED;
struct coff_sfile *sfile;
- int n;
+ int n ATTRIBUTE_UNUSED;
{
#if 0
wr_globals (p, sfile, n)
struct coff_ofile *p;
struct coff_sfile *sfile;
- int n;
+ int n ATTRIBUTE_UNUSED;
{
struct coff_symbol *sy;
for (sy = p->symbol_list_head;
static void
wr_er (ptr, sfile, first)
struct coff_ofile *ptr;
- struct coff_sfile *sfile;
+ struct coff_sfile *sfile ATTRIBUTE_UNUSED;
int first;
{
int idx = 0;
static void
wr_ed (ptr, sfile, first)
struct coff_ofile *ptr;
- struct coff_sfile *sfile;
+ struct coff_sfile *sfile ATTRIBUTE_UNUSED;
int first;
{
struct coff_symbol *s;
show_usage (stderr, 1);
if (strcmp (input_file, output_file) == 0)
{
- fprintf (stderr,
- _("%s: input and output files must be different\n"),
- program_name);
- exit (1);
+ fatal (_("input and output files must be different"));
}
}
}
if (!input_file)
{
- fprintf (stderr, _("%s: no input file specified\n"),
- program_name);
- exit (1);
+ fatal (_("no input file specified"));
}
if (!output_file)
if (!file)
{
- fprintf (stderr, _("%s: unable to open output file %s\n"),
- program_name, output_file);
- exit (1);
+ fatal (_("unable to open output file %s"), output_file);
}
if (debug)