From 03fd1ef632f41caaaa38a80712ed7eda3f97fdff Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Fri, 2 Dec 2016 13:14:01 +0000 Subject: [PATCH] diagnostic.c (diagnostic_report_diagnostic): Remove extraneous braces. * diagnostic.c (diagnostic_report_diagnostic): Remove extraneous braces. From-SVN: r243177 --- gcc/ChangeLog | 5 +++++ gcc/diagnostic.c | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index afac97374a5..7da0acad77a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-12-02 Nathan Sidwell + + * diagnostic.c (diagnostic_report_diagnostic): Remove extraneous + braces. + 2016-12-02 Aldy Hernandez PR middle-end/78328 diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index 2304e14c761..4278a10890e 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)) -- 2.30.2