Misplaced return in previous commit.
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Fri, 18 Sep 2015 22:34:53 +0000 (22:34 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Fri, 18 Sep 2015 22:34:53 +0000 (22:34 +0000)
2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>

* c-pragma.c (handle_pragma_diagnostic): Fix wrong return.

From-SVN: r227924

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

index 49df8c9ed76345db62472c87b8350bbec61539a1..b45b53e31fe291519889f9e8107a8737a96a817b 100644 (file)
@@ -1,3 +1,7 @@
+2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
+
+       * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
+
 2015-09-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
 
        * c-pragma.c (handle_pragma_diagnostic): Use explicit location
index 4679555ac298385d036bb5a72a0c73b3875d6ef4..de2304e788eee1fbee58dfdf71f5e23c47f01ac9 100644 (file)
@@ -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);