From: Jakub Jelinek Date: Tue, 25 Feb 2020 08:04:39 +0000 (+0100) Subject: c: Small diagnostics tweak - add missing ? after did you mean [PR93858] X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7b60f3ba7660ad8697843ed8d0198449b9ea0a90;p=gcc.git c: Small diagnostics tweak - add missing ? after did you mean [PR93858] 2020-02-25 Jakub Jelinek PR c/93858 * c-pragma.c (handle_pragma_diagnostic): Add missing ? after "did you mean" hint in diagnostics. --- diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index bcab260859f..e47af7fb249 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,9 @@ +2020-02-25 Jakub Jelinek + + PR c/93858 + * c-pragma.c (handle_pragma_diagnostic): Add missing ? after + "did you mean" hint in diagnostics. + 2020-02-15 Jason Merrill * c.opt: Add -std=c++20. diff --git a/gcc/c-family/c-pragma.c b/gcc/c-family/c-pragma.c index 723e470ed35..7c35741745b 100644 --- a/gcc/c-family/c-pragma.c +++ b/gcc/c-family/c-pragma.c @@ -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");