aboutsummaryrefslogtreecommitdiff
path: root/gcc/diagnostic.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2016-12-02 13:14:01 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2016-12-02 13:14:01 +0000
commit03fd1ef632f41caaaa38a80712ed7eda3f97fdff (patch)
tree159f4fff923d0b21429e61b586caa6b31792d9fd /gcc/diagnostic.c
parentd003d97f1d17b7ca89668fdf71d8a7f9c839cc2b (diff)
downloadgcc-03fd1ef632f41caaaa38a80712ed7eda3f97fdff.zip
gcc-03fd1ef632f41caaaa38a80712ed7eda3f97fdff.tar.gz
gcc-03fd1ef632f41caaaa38a80712ed7eda3f97fdff.tar.bz2
diagnostic.c (diagnostic_report_diagnostic): Remove extraneous braces.
* diagnostic.c (diagnostic_report_diagnostic): Remove extraneous braces. From-SVN: r243177
Diffstat (limited to 'gcc/diagnostic.c')
-rw-r--r--gcc/diagnostic.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c
index 2304e14..4278a10 100644
--- a/gcc/diagnostic.c
+++ b/gcc/diagnostic.c
@@ -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))