mirror of git://gcc.gnu.org/git/gcc.git
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
This commit is contained in:
parent
2f13a42d9c
commit
81018dcf98
|
|
@ -1,3 +1,10 @@
|
|||
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 ();
|
||||
|
|
|
|||
Loading…
Reference in New Issue