+2015-02-12 David Howells <dhowells@redhat.com>
+
+ * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
+ warning.
+ * tree-ssa-uninit.c (dump_predicates): Likewise.
+ * opts.c (print_filtered_help): Likewise.
+
2015-02-12 Jakub Jelinek <jakub@redhat.com>
* dwarf2out.c (output_die): Use "%s", name instead of name to
if (* (const char **) flag_var != NULL)
snprintf (new_help + strlen (new_help),
sizeof (new_help) - strlen (new_help),
- * (const char **) flag_var);
+ "%s", * (const char **) flag_var);
}
else if (option->var_type == CLVC_ENUM)
{
arg = _("[default]");
snprintf (new_help + strlen (new_help),
sizeof (new_help) - strlen (new_help),
- arg);
+ "%s", arg);
}
else
sprintf (new_help + strlen (new_help),
{
basic_block bb;
- fprintf (dump_file, str);
+ fprintf (dump_file, "%s", str);
FOR_BB_BETWEEN (bb, ENTRY_BLOCK_PTR_FOR_FN (cfun),
EXIT_BLOCK_PTR_FOR_FN (cfun), next_bb)
{
{
size_t i, j;
pred_chain one_pred_chain = vNULL;
- fprintf (dump_file, msg);
+ fprintf (dump_file, "%s", msg);
print_gimple_stmt (dump_file, usestmt, 0, 0);
fprintf (dump_file, "is guarded by :\n\n");
size_t num_preds = preds.length ();