c: Small diagnostics tweak - add missing ? after did you mean [PR93858]
authorJakub Jelinek <jakub@redhat.com>
Tue, 25 Feb 2020 08:04:39 +0000 (09:04 +0100)
committerJakub Jelinek <jakub@redhat.com>
Tue, 25 Feb 2020 08:04:39 +0000 (09:04 +0100)
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.

gcc/c-family/ChangeLog
gcc/c-family/c-pragma.c

index bcab260859f8c90c4efb796cb00c301efd1805db..e47af7fb24994464e409a55e36df9862208acb90 100644 (file)
@@ -1,3 +1,9 @@
+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>
 
        * c.opt: Add -std=c++20.
index 723e470ed35daa90064c52e89d3581428271a454..7c35741745bd21879ecfb583a3a544da50baf0ac 100644 (file)
@@ -814,7 +814,7 @@ handle_pragma_diagnostic(cpp_reader *ARG_UNUSED(dummy))
       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");