diff options
author | David Howells <dhowells@redhat.com> | 2015-02-12 21:29:21 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2015-02-12 22:29:21 +0100 |
commit | 81018dcf98af6346d1bfcfefa5cc9e9c250ac79b (patch) | |
tree | 564f9977a52647ab1739ca081284bb2170588ac0 /gcc/opts.c | |
parent | 2f13a42d9c9aa9d24bd6f9b4bf3d03cc38efff09 (diff) | |
download | gcc-81018dcf98af6346d1bfcfefa5cc9e9c250ac79b.zip gcc-81018dcf98af6346d1bfcfefa5cc9e9c250ac79b.tar.gz gcc-81018dcf98af6346d1bfcfefa5cc9e9c250ac79b.tar.bz2 |
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
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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), |