gcc-4.3.2 shipped with Ubuntu 8.10.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8723
if (buf[i] == '\n') {
fprintf(stdout, "\n(%d) ", conn_count);
} else {
- fwrite(&buf[i], 1, 1, stdout);
+ __attribute__((unused)) size_t ignored
+ = fwrite(&buf[i], 1, 1, stdout);
}
}
fflush(stdout);
char sp[] = " ";
if (s>40) s=40;
- VG_(printf)(sp+40-s);
+ VG_(printf)("%s", sp+40-s);
VG_(printf)("'%s'/%d\n", node->name, node->length);
}
for(i=0;i<NODE_DEGREE;i++) {
/* max of 40 spaces */
char sp[] = " ";
if (s>40) s=40;
- VG_(printf)(sp+40-s);
+ VG_(printf)("%s", sp+40-s);
}
void CLG_(print_bb)(int s, BB* bb)
if (es->e[i-1].nextTop == i)
VG_(printf)("| ");
}
- VG_(printf)(es->e[i].type->name);
+ VG_(printf)("%s", es->e[i].type->name);
}
}
VG_(printf)("\n");
for(i=0; i< es->size; i++) {
if (pos>0) buf[pos++] = ' ';
- pos += VG_(sprintf)(buf + pos, es->e[i].type->name);
+ pos += VG_(sprintf)(buf + pos, "%s", es->e[i].type->name);
}
buf[pos] = 0;
for(i=0; i< em->size; i++) {
if (pos>0) buf[pos++] = ' ';
- pos += VG_(sprintf)(buf + pos, em->set->e[em->index[i]].type->name);
+ pos += VG_(sprintf)(buf + pos, "%s", em->set->e[em->index[i]].type->name);
}
buf[pos] = 0;
VG_(printf)(" (none)\n");
}
if (debug_help) {
- VG_(printf)(usage2);
+ VG_(printf)("%s", usage2);
if (VG_(details).name) {
VG_(printf)(" debugging options for %s:\n", VG_(details).name);