diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-09-12 16:23:25 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-09-12 16:23:25 +0000 |
commit | ae115e5114deb0326333c80f7af9e689b2e7d01f (patch) | |
tree | 2c592646411768ec9a95b17070181cb5b068cf9c /bfd/versados.c | |
parent | d8586e35caeb6ffea7058bce844023ec19140cc7 (diff) | |
download | gdb-ae115e5114deb0326333c80f7af9e689b2e7d01f.zip gdb-ae115e5114deb0326333c80f7af9e689b2e7d01f.tar.gz gdb-ae115e5114deb0326333c80f7af9e689b2e7d01f.tar.bz2 |
Extensive minor changes to avoid various gcc warnings. Also:
* Makefile.in (BFD32_BACKENDS): Remove coff-arm.o.
* archures.c (bfd_arch_info_type): Change mach field from long to
unsigned long.
(bfd_lookup_arch): Change machine parameter from long to unsigned
long.
Diffstat (limited to 'bfd/versados.c')
-rw-r--r-- | bfd/versados.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/bfd/versados.c b/bfd/versados.c index b555085..72bf141 100644 --- a/bfd/versados.c +++ b/bfd/versados.c @@ -387,7 +387,6 @@ process_otr (abfd, otr, pass) int pass; { unsigned long shift; - long val; unsigned char *srcp = otr->data; unsigned char *endp = (unsigned char *) otr + otr->size; unsigned int bits = (otr->map[0] << 24) @@ -398,7 +397,7 @@ process_otr (abfd, otr, pass) struct esdid *esdid = &EDATA (abfd, otr->esdid - 1); unsigned char *contents = esdid->contents; int need_contents = 0; - int dst_idx = esdid->pc; + unsigned int dst_idx = esdid->pc; for (shift = (1 << 31); shift && srcp < endp; shift >>= 1) { @@ -668,7 +667,7 @@ versados_get_section_contents (abfd, section, location, offset, count) memcpy (location, EDATA (abfd, section->target_index).contents + offset, - count); + (size_t) count); return true; } @@ -721,7 +720,7 @@ versados_get_symtab (abfd, alocation) asymbol **alocation; { unsigned int symcount = bfd_get_symcount (abfd); - int i; + unsigned int i; asymbol *s; versados_pass_2 (abfd); @@ -787,7 +786,7 @@ versados_canonicalize_reloc (abfd, section, relptr, symbols) arelent **relptr; asymbol **symbols; { - int count; + unsigned int count; arelent *src; versados_pass_2 (abfd); |