From 6b84886ad5e6b53e7b3bb6d8c33685614364b58f Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sun, 29 Mar 1998 04:15:29 +0000 Subject: Fix some gcc -Wall warnings: * cg_arcs.c (num_cycles): Change to unsigned int. (numarcs): Likewise. (arc_add): Change maxarcs to unsigned int. (cg_assemble): Change index to unsigned int. * cg_arcs.h (num_cycles, numarcs): Update declarations. * cg_print.c (cg_print): Change index to unsigned int. (cg_print_index): Change index, nnames, todo, i, and j to unsigned int. (cg_print_file_ordering): Change symbol_count and index2 to unsigned int. * core.c (symbol_map_count): Change to unsigned int. (core_create_function_syms): Change j to unsigned int. (core_create_line_syms): Add cast to avoid warning. * hist.c (hist_assign_samples): Change j to unsigned int. (hist_print): Change index to unsigned i nt. Add cast to avoid warning. * sym_ids.c (parse_spec): Add casts to avoid warning. * symtab.c (symtab_finalize): Change j to unsigned int. (sym_lookup): Update printf format strings. * symtab.h (Sym_Table): Change len to unsigned int. * tahoe.c (tahoe_reladdr): Add casts to avoid warnings. --- gprof/sym_ids.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gprof/sym_ids.c') diff --git a/gprof/sym_ids.c b/gprof/sym_ids.c index 9c809b6..24814e8 100644 --- a/gprof/sym_ids.c +++ b/gprof/sym_ids.c @@ -101,7 +101,7 @@ DEFUN (parse_spec, (spec, sym), char *spec AND Sym * sym) spec = colon + 1; if (strlen (spec)) { - if (isdigit (spec[0])) + if (isdigit ((unsigned char) spec[0])) { sym->line_num = atoi (spec); } @@ -122,7 +122,7 @@ DEFUN (parse_spec, (spec, sym), char *spec AND Sym * sym) sym->file = &non_existent_file; } } - else if (isdigit (*spec)) + else if (isdigit ((unsigned char) *spec)) { sym->line_num = atoi (spec); } -- cgit v1.1