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

Message ID 20200225081008.GD2110@tucnak
State New
Headers show
Series
  • [committed] c: Small diagnostics tweak - add missing ? after did you mean [PR93858]
Related show

Commit Message

Jakub Jelinek Feb. 25, 2020, 8:10 a.m.
Hi!

All other diagnostic messages have ? after ; did you mean ..., but this one
doesn't.

Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, committed
to trunk as obvious.

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.


	Jakub

Patch

--- gcc/c-family/c-pragma.c.jj	2020-01-12 11:54:36.204416562 +0100
+++ gcc/c-family/c-pragma.c	2020-02-24 10:53:34.685121021 +0100
@@ -814,7 +814,7 @@  handle_pragma_diagnostic(cpp_reader *ARG
       if (hint)
 	warning_at (loc, OPT_Wpragmas,
 		    "unknown option after %<#pragma GCC diagnostic%> kind;"
-		    " did you mean %<-%s%>", hint);
+		    " did you mean %<-%s%>?", hint);
       else
 	warning_at (loc, OPT_Wpragmas,
 		    "unknown option after %<#pragma GCC diagnostic%> kind");