From 7b60f3ba7660ad8697843ed8d0198449b9ea0a90 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 25 Feb 2020 09:04:39 +0100 Subject: [PATCH] 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. --- gcc/c-family/ChangeLog | 6 ++++++ gcc/c-family/c-pragma.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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"); -- 2.30.2