Commit 7b60f3ba by Jakub Jelinek

c: Small diagnostics tweak - add missing ? after did you mean [PR93858]

2020-02-25  Jakub Jelinek  <jakub@redhat.com>

	PR c/93858
	* c-pragma.c (handle_pragma_diagnostic): Add missing ? after
	"did you mean" hint in diagnostics.
parent 71837f64
2020-02-25 Jakub Jelinek <jakub@redhat.com>
PR c/93858
* c-pragma.c (handle_pragma_diagnostic): Add missing ? after
"did you mean" hint in diagnostics.
2020-02-15 Jason Merrill <jason@redhat.com> 2020-02-15 Jason Merrill <jason@redhat.com>
* c.opt: Add -std=c++20. * c.opt: Add -std=c++20.
......
...@@ -814,7 +814,7 @@ handle_pragma_diagnostic(cpp_reader *ARG_UNUSED(dummy)) ...@@ -814,7 +814,7 @@ handle_pragma_diagnostic(cpp_reader *ARG_UNUSED(dummy))
if (hint) if (hint)
warning_at (loc, OPT_Wpragmas, warning_at (loc, OPT_Wpragmas,
"unknown option after %<#pragma GCC diagnostic%> kind;" "unknown option after %<#pragma GCC diagnostic%> kind;"
" did you mean %<-%s%>", hint); " did you mean %<-%s%>?", hint);
else else
warning_at (loc, OPT_Wpragmas, warning_at (loc, OPT_Wpragmas,
"unknown option after %<#pragma GCC diagnostic%> kind"); "unknown option after %<#pragma GCC diagnostic%> kind");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment