aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-ssa-warn-access.cc
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2022-01-05 13:28:37 -0700
committerMartin Sebor <msebor@redhat.com>2022-01-05 13:32:24 -0700
commit194f712f8b7a6a31651f4cf57d49fbf701da5ed6 (patch)
tree5d1df3d942e957b2e32966aa4120f9c8604ce5c8 /gcc/gimple-ssa-warn-access.cc
parent6aa44066b342b9636a736f28d7ac3a0d44dae5c8 (diff)
downloadgcc-194f712f8b7a6a31651f4cf57d49fbf701da5ed6.zip
gcc-194f712f8b7a6a31651f4cf57d49fbf701da5ed6.tar.gz
gcc-194f712f8b7a6a31651f4cf57d49fbf701da5ed6.tar.bz2
Avoid -Wformat-diag.
gcc/ChangeLog: * gimple-ssa-warn-access.cc (pass_waccess::maybe_warn_memmodel): Use %qs to avoid -Wformat-diag.
Diffstat (limited to 'gcc/gimple-ssa-warn-access.cc')
-rw-r--r--gcc/gimple-ssa-warn-access.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple-ssa-warn-access.cc b/gcc/gimple-ssa-warn-access.cc
index 9f06ee8..e4c078a 100644
--- a/gcc/gimple-ssa-warn-access.cc
+++ b/gcc/gimple-ssa-warn-access.cc
@@ -2841,7 +2841,7 @@ pass_waccess::maybe_warn_memmodel (gimple *stmt, tree ord_sucs,
for (unsigned i = 0; valid[i] != UCHAR_MAX; ++i)
{
const char *modname = memory_models[valid[i]].modname;
- pp_printf (&pp, "%s%<%s%>", i ? ", " : "", modname);
+ pp_printf (&pp, "%s%qs", i ? ", " : "", modname);
}
inform (loc, "valid models are %s", pp_formatted_text (&pp));