diff --git a/lto-plugin/ChangeLog b/lto-plugin/ChangeLog index 585b56d31c2..014082f99a1 100644 --- a/lto-plugin/ChangeLog +++ b/lto-plugin/ChangeLog @@ -1,3 +1,8 @@ +2010-10-11 Kai Tietz + + * lto-plugin.c (dump_symtab): Correct printf argument type. + (finish_conflict_resolution): Initialize resolution. + 2010-10-08 H.J. Lu PR bootstrap/45951 diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c index 7e8443d021e..433f545391f 100644 --- a/lto-plugin/lto-plugin.c +++ b/lto-plugin/lto-plugin.c @@ -257,7 +257,7 @@ dump_symtab (FILE *f, struct plugin_symtab *symtab) assert (resolution != LDPR_UNKNOWN); - fprintf (f, "%d %x %s %s\n", slot, symtab->aux[j].id, + fprintf (f, "%u %x %s %s\n", (unsigned int) slot, symtab->aux[j].id, lto_resolution_str[resolution], symtab->syms[j].name); } @@ -277,7 +277,7 @@ finish_conflict_resolution (struct plugin_symtab *symtab, for (i = 0; i < symtab->nsyms; i++) { - int resolution; + int resolution = LDPR_UNKNOWN; if (symtab->aux[i].next_conflict == -1) continue;