forked from Imagelibrary/binutils-gdb
Clean up compiler warnings:
* bcache.h, bcache.c, c-valprint.c, coffread.c, stabsread.c, stack.c, valprint.c: Change variables to unsigned. * bcache.c: Rearrange to avoid warnings about variables not being set. * c-lang.c, ch-lang.c, f-lang.c, m2-lang.c: Include valprint.h rather than declaring print_max and repeat_count_threashold ourselves (incorrectly). * valprint.h: Do declare repeat_count_threashold. * ch-exp.c: Use default case for internal error. * findvar.c: Don't omit argument type. * symtab.c: Remove unused variable.
This commit is contained in:
@@ -219,7 +219,7 @@ static void read_one_sym PARAMS ((struct coff_symbol *,
|
||||
struct internal_syment *,
|
||||
union internal_auxent *));
|
||||
|
||||
static void coff_symtab_read PARAMS ((long, int, struct objfile *));
|
||||
static void coff_symtab_read PARAMS ((long, unsigned int, struct objfile *));
|
||||
|
||||
static void find_linenos PARAMS ((bfd *, sec_ptr, PTR));
|
||||
|
||||
@@ -605,7 +605,7 @@ coff_symfile_read (objfile, mainline)
|
||||
coff_data_type *cdata = coff_data (abfd);
|
||||
char *name = bfd_get_filename (abfd);
|
||||
register int val;
|
||||
int num_symbols;
|
||||
unsigned int num_symbols;
|
||||
int symtab_offset;
|
||||
int stringtab_offset;
|
||||
struct cleanup *back_to;
|
||||
@@ -755,7 +755,7 @@ coff_symfile_finish (objfile)
|
||||
static void
|
||||
coff_symtab_read (symtab_offset, nsyms, objfile)
|
||||
long symtab_offset;
|
||||
int nsyms;
|
||||
unsigned int nsyms;
|
||||
struct objfile *objfile;
|
||||
{
|
||||
register struct context_stack *new;
|
||||
|
||||
Reference in New Issue
Block a user