From 746cffcf6adbda2a7a69f783ac97c84e25f089fd Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 12 Sep 1995 16:39:12 +0000 Subject: [PATCH] * objdump.c (disassemble_data): Add casts to avoid gcc warnings. --- binutils/ChangeLog | 4 ++++ binutils/objdump.c | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index e10af9f..84ca36b 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,7 @@ +Tue Sep 12 12:37:39 1995 Ian Lance Taylor + + * objdump.c (disassemble_data): Add casts to avoid gcc warnings. + Thu Sep 7 12:12:17 1995 Ian Lance Taylor * config.in: Rename from config.h.in. diff --git a/binutils/objdump.c b/binutils/objdump.c index 3114852..64cba47 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -18,7 +18,6 @@ along with this program; if not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "bfd.h" -#include "sysdep.h" #include "getopt.h" #include "progress.h" #include "bucomm.h" @@ -31,8 +30,9 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #define BYTES_IN_WORD 32 #include "aout/aout64.h" -#ifndef FPRINTF_ALREADY_DECLARED -extern int fprintf PARAMS ((FILE *, CONST char *, ...)); +#ifdef NEED_DECLARATION_FPRINTF +/* This is needed by INIT_DISASSEMBLE_INFO. */ +extern int fprintf (); #endif char *default_target = NULL; /* default at runtime */ @@ -870,8 +870,8 @@ disassemble_data (abfd) && (section->flags & SEC_RELOC) != 0) { while (relpp < relppend - && ((*relpp)->address >= i - && (*relpp)->address < i + bytes)) + && ((*relpp)->address >= (bfd_vma) i + && (*relpp)->address < (bfd_vma) i + bytes)) { arelent *q; const char *sym_name; -- 2.7.4