From eaa797e8d5cac0ea47014f3510828075684d090b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Manuel=20L=C3=B3pez-Ib=C3=A1=C3=B1ez?= Date: Fri, 18 Sep 2015 22:34:53 +0000 Subject: [PATCH] Misplaced return in previous commit. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2015-09-18 Manuel López-Ibáñez * c-pragma.c (handle_pragma_diagnostic): Fix wrong return. From-SVN: r227924 --- gcc/c-family/ChangeLog | 4 ++++ gcc/c-family/c-pragma.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 49df8c9ed76..b45b53e31fe 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,7 @@ +2015-09-18 Manuel López-Ibáñez + + * c-pragma.c (handle_pragma_diagnostic): Fix wrong return. + 2015-09-18 Manuel López-Ibáñez * c-pragma.c (handle_pragma_diagnostic): Use explicit location diff --git a/gcc/c-family/c-pragma.c b/gcc/c-family/c-pragma.c index 4679555ac29..de2304e788e 100644 --- a/gcc/c-family/c-pragma.c +++ b/gcc/c-family/c-pragma.c @@ -712,8 +712,8 @@ handle_pragma_diagnostic(cpp_reader *ARG_UNUSED(dummy)) warning_at (loc, OPT_Wpragmas, "missing [error|warning|ignored|push|pop]" " after %<#pragma GCC diagnostic%>"); + return; } - return; diagnostic_t kind; const char *kind_string = IDENTIFIER_POINTER (x); -- 2.30.2