diagnostic.c (diagnostic_report_diagnostic): Remove extraneous braces.

* diagnostic.c (diagnostic_report_diagnostic): Remove extraneous
	braces.

From-SVN: r243177
This commit is contained in:
Nathan Sidwell 2016-12-02 13:14:01 +00:00 committed by Nathan Sidwell
parent d003d97f1d
commit 03fd1ef632
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2016-12-02 Nathan Sidwell <nathan@acm.org>
* diagnostic.c (diagnostic_report_diagnostic): Remove extraneous
braces.
2016-12-02 Aldy Hernandez <aldyh@redhat.com>
PR middle-end/78328

View File

@ -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))