diff options
author | Nathan Sidwell <nathan@acm.org> | 2016-10-12 10:36:35 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2016-10-12 10:36:35 +0000 |
commit | d5e7854c12141be936de30092baa3ec49036a02c (patch) | |
tree | e6ae03bd2b6e7ce6cde57715c238e87642f79d1f /gcc/diagnostic.c | |
parent | 393525afc3eefc8d29d34b3cf603cb94483b04e0 (diff) | |
download | gcc-d5e7854c12141be936de30092baa3ec49036a02c.zip gcc-d5e7854c12141be936de30092baa3ec49036a02c.tar.gz gcc-d5e7854c12141be936de30092baa3ec49036a02c.tar.bz2 |
* diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
From-SVN: r241027
Diffstat (limited to 'gcc/diagnostic.c')
-rw-r--r-- | gcc/diagnostic.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index 167a1b5..2304e14 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) |