diff mbox

[diagnostic] fix formatting

Message ID 814265ac-64cb-5f44-5e06-98d503c5668c@acm.org
State New
Headers show

Commit Message

Nathan Sidwell Oct. 12, 2016, 10:37 a.m. UTC
I noticed some extraneous braces and extra long lines.  Applied as obvious.

nathan
diff mbox

Patch

2016-10-12  Nathan Sidwell  <nathan@acm.org>

	* diagnostic.c (diagnostc_report_diagnostic): Fix formatting.

Index: diagnostic.c
===================================================================
--- diagnostic.c	(revision 241024)
+++ diagnostic.c	(working copy)
@@ -877,13 +877,15 @@  diagnostic_report_diagnostic (diagnostic
 		}
 	    }
 	}
+
       /* 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)