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  <ja...@redhat.com>

        PR c/93858
        * c-pragma.c (handle_pragma_diagnostic): Add missing ? after
        "did you mean" hint in diagnostics.

--- 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");

        Jakub

Reply via email to