From e917a27cd326da30d86cb803f61fe0dfb8c32bc1 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 12 Oct 2016 10:36:35 +0000 Subject: [PATCH] * diagnostic.c (diagnostc_report_diagnostic): Fix formatting. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@241027 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++++ gcc/diagnostic.c | 10 ++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c5a982ee70f..666add9e1c9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-10-12 Nathan Sidwell + + * diagnostic.c (diagnostc_report_diagnostic): Fix formatting. + 2016-10-12 Pierre-Marie de Rodat * dwarf2out.c (int_loc_descriptor): Generate opcodes for another diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index 167a1b58766..2304e14c761 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -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) -- 2.11.4.GIT