aboutsummaryrefslogtreecommitdiff
path: root/gas/as.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-06-19 18:42:42 +0000
committerIan Lance Taylor <ian@airs.com>1996-06-19 18:42:42 +0000
commit8095b665cb218ed8d9a617362fec29d570250a8a (patch)
tree90a6d1234bcaf2bb2a4093ba87d273fc83b140b2 /gas/as.c
parent9753202d00b3bdbbda6e66b42aab00a4440e81ff (diff)
downloadgdb-8095b665cb218ed8d9a617362fec29d570250a8a.zip
gdb-8095b665cb218ed8d9a617362fec29d570250a8a.tar.gz
gdb-8095b665cb218ed8d9a617362fec29d570250a8a.tar.bz2
* as.c (emulation_name): Remove unused static variable.
(default_emul_bfd_name): Add return NULL to avoid warning. * ecoff.c (ecoff_stab): Remove unused variables name and name_end. * frags.c (frag_new): Remove unused variable tmp. * hash.c (hash_grow): Parenthesize + within <<. (hash_print_statistics): Use %lu, not %d, to print unsigned long variables. * messages.c: Include "libiberty.h". (fprint_value): Add cast to avoid printf warning. (sprint_value): Likewise. * read.c: Include "ecoff.h". (emit_expr): Add casts to avoid printf warnings. * read.h: Use extern for function declarations. (pop_insert): Declare. * stabs.c: Include "ecoff.h". * subsegs.c (subseg_set_rest): Remove unused variables tmp, former_last_fragP, and new_fragP. * subsegs.h (subsegs_print_statistics): Declare. * symbols.c (debug_verify_symchain): Change macro to discard arguments. * write.c (dump_section_relocs): Likewise. * write.h: Use extern for function declarations. (write_print_statistics): Declare. * config/e-mipsecoff.c (mipsecoff_bfd_name): Return NULL to avoid warning. * config/e-mipself.c (mipself_bfd_name): Likewise. * config/obj-elf.h (elf_ecoff_set_ext): Declare.
Diffstat (limited to 'gas/as.c')
-rw-r--r--gas/as.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/as.c b/gas/as.c
index 2c56241..4062f62 100644
--- a/gas/as.c
+++ b/gas/as.c
@@ -129,7 +129,6 @@ Options:\n\
extern struct emulation mipsbelf, mipslelf, mipself;
extern struct emulation mipsbecoff, mipslecoff, mipsecoff;
-static const char *emulation_name;
static struct emulation *const emulations[] = { EMULATIONS };
static const int n_emulations = sizeof (emulations) / sizeof (emulations[0]);
@@ -183,6 +182,7 @@ const char *
default_emul_bfd_name ()
{
abort ();
+ return NULL;
}
void
@@ -541,6 +541,7 @@ main (argc, argv)
hex_init ();
#ifdef BFD_ASSEMBLER
bfd_init ();
+ bfd_set_error_program_name (myname);
#endif
#ifdef USE_EMULATIONS