diagnostic.c (diagnostic_report_diagnostic): Remove extraneous braces.
authorNathan Sidwell <nathan@acm.org>
Fri, 2 Dec 2016 13:14:01 +0000 (13:14 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 2 Dec 2016 13:14:01 +0000 (13:14 +0000)
* diagnostic.c (diagnostic_report_diagnostic): Remove extraneous
braces.

From-SVN: r243177

gcc/ChangeLog
gcc/diagnostic.c

index afac97374a5620e43cc505f3cd4a28417641f9b1..7da0acad77a69b23846fcaf99f6e2f08b7f3bd78 100644 (file)
@@ -1,3 +1,8 @@
+2016-12-02  Nathan Sidwell  <nathan@acm.org>
+
+       * diagnostic.c (diagnostic_report_diagnostic): Remove extraneous
+       braces.
+
 2016-12-02  Aldy Hernandez  <aldyh@redhat.com>
 
        PR middle-end/78328
index 2304e14c76185c2da0eab53db5f4a97e633a12d5..4278a10890e13f13e2347595951052f5aadc6023 100644 (file)
@@ -834,9 +834,7 @@ diagnostic_report_diagnostic (diagnostic_context *context,
      -Wno-error=*.  */
   if (context->warning_as_error_requested
       && diagnostic->kind == DK_WARNING)
-    {
-      diagnostic->kind = DK_ERROR;
-    }
+    diagnostic->kind = DK_ERROR;
 
   if (diagnostic->option_index
       && diagnostic->option_index != permissive_error_option (context))