diff options
author | Ian Lance Taylor <ian@airs.com> | 1998-03-29 04:15:29 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1998-03-29 04:15:29 +0000 |
commit | 6b84886ad5e6b53e7b3bb6d8c33685614364b58f (patch) | |
tree | febee5c105a2f24b54b4dcd198f0083f0afc903d /gprof/symtab.c | |
parent | c246596af760bc57c2af7c5a10afbe5ec0dd9fc2 (diff) | |
download | gdb-6b84886ad5e6b53e7b3bb6d8c33685614364b58f.zip gdb-6b84886ad5e6b53e7b3bb6d8c33685614364b58f.tar.gz gdb-6b84886ad5e6b53e7b3bb6d8c33685614364b58f.tar.bz2 |
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.
Diffstat (limited to 'gprof/symtab.c')
-rw-r--r-- | gprof/symtab.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gprof/symtab.c b/gprof/symtab.c index 0b6a4af..1ac61cc 100644 --- a/gprof/symtab.c +++ b/gprof/symtab.c @@ -150,7 +150,7 @@ DEFUN (symtab_finalize, (tab), Sym_Table * tab) tab->len = tab->limit - tab->base; DBG (AOUTDEBUG | IDDEBUG, - int j; + unsigned int j; for (j = 0; j < tab->len; ++j) { @@ -237,7 +237,7 @@ DEFUN (sym_lookup, (symtab, address), Sym_Table * symtab AND bfd_vma address) else { DBG (LOOKUPDEBUG, - printf ("[sym_lookup] %d probes (symtab->len=%d)\n", + printf ("[sym_lookup] %d probes (symtab->len=%u)\n", probes, symtab->len - 1)); return &sym[mid]; } @@ -260,7 +260,7 @@ DEFUN (sym_lookup, (symtab, address), Sym_Table * symtab AND bfd_vma address) } else { - DBG (LOOKUPDEBUG, printf ("[sym_lookup] %d (%d) probes, fall off\n", + DBG (LOOKUPDEBUG, printf ("[sym_lookup] %d (%u) probes, fall off\n", probes, symtab->len - 1)); return &sym[mid + 1]; } |