Avoid -Wformat-diag.
gcc/ChangeLog: * gimple-ssa-warn-access.cc (pass_waccess::maybe_warn_memmodel): Use %qs to avoid -Wformat-diag.
This commit is contained in:
parent
6aa44066b3
commit
194f712f8b
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue