* diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
authorNathan Sidwell <nathan@acm.org>
Wed, 12 Oct 2016 10:36:35 +0000 (10:36 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 12 Oct 2016 10:36:35 +0000 (10:36 +0000)
From-SVN: r241027

gcc/ChangeLog
gcc/diagnostic.c

index c5a982ee70f762541d38ae54196d9ff1284108c0..666add9e1c9e9bda67d8ff59bcf7d6631ff8da96 100644 (file)
@@ -1,3 +1,7 @@
+2016-10-12  Nathan Sidwell  <nathan@acm.org>
+
+       * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
+
 2016-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
 
        * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
index 167a1b587664c2d412419d625a7d5a6aee3df852..2304e14c76185c2da0eab53db5f4a97e633a12d5 100644 (file)
@@ -877,13 +877,15 @@ diagnostic_report_diagnostic (diagnostic_context *context,
                }
            }
        }
+
       /* This tests if the user provided the appropriate -Werror=foo
         option.  */
       if (diag_class == DK_UNSPECIFIED
-         && context->classify_diagnostic[diagnostic->option_index] != DK_UNSPECIFIED)
-       {
-         diagnostic->kind = context->classify_diagnostic[diagnostic->option_index];
-       }
+         && (context->classify_diagnostic[diagnostic->option_index]
+             != DK_UNSPECIFIED))
+       diagnostic->kind
+         = context->classify_diagnostic[diagnostic->option_index];
+
       /* This allows for future extensions, like temporarily disabling
         warnings for ranges of source code.  */
       if (diagnostic->kind == DK_IGNORED)