aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2015-02-12 21:29:21 +0000
committerJakub Jelinek <jakub@gcc.gnu.org>2015-02-12 22:29:21 +0100
commit81018dcf98af6346d1bfcfefa5cc9e9c250ac79b (patch)
tree564f9977a52647ab1739ca081284bb2170588ac0 /gcc/opts.c
parent2f13a42d9c9aa9d24bd6f9b4bf3d03cc38efff09 (diff)
downloadgcc-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index 84627c4..4a1ed0e 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -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),