Commit 81018dcf by David Howells Committed by Jakub Jelinek

tree-sra.c (dump_dereferences_table): Avoid -Wformat-security warning.

	* tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
	warning.
	* tree-ssa-uninit.c (dump_predicates): Likewise.
	* opts.c (print_filtered_help): Likewise.

From-SVN: r220662
parent 2f13a42d
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
......
......@@ -1106,7 +1106,7 @@ print_filtered_help (unsigned int include_flags,
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)
{
......@@ -1120,7 +1120,7 @@ print_filtered_help (unsigned int include_flags,
arg = _("[default]");
snprintf (new_help + strlen (new_help),
sizeof (new_help) - strlen (new_help),
arg);
"%s", arg);
}
else
sprintf (new_help + strlen (new_help),
......
......@@ -3987,7 +3987,7 @@ dump_dereferences_table (FILE *f, const char *str, HOST_WIDE_INT *table)
{
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)
{
......
......@@ -820,7 +820,7 @@ dump_predicates (gimple usestmt, pred_chain_union preds,
{
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 ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment