[hackers] [scc] [cc1] remove unecessary value assignment to failure || Quentin Rameau

From: <git_AT_suckless.org>
Date: Fri, 17 Jun 2016 21:45:14 +0200 (CEST)

commit 1d32900025c34caca5328141c8a81529b4bb882b
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Thu Jun 16 17:17:16 2016 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Fri Jun 17 21:41:10 2016 +0200

    [cc1] remove unecessary value assignment to failure

diff --git a/cc1/error.c b/cc1/error.c
index 79feea2..a864d4b 100644
--- a/cc1/error.c
+++ b/cc1/error.c
_AT_@ -24,10 +24,8 @@ warn_error(int flag, char *fmt, va_list va)
         putc('\n', stderr);
 
         if (flag < 0) {
- if (!failure) {
- failure = 1;
+ if (!failure)
                         fclose(stdout);
- }
                 failure = 1;
                 if (++nerrors == MAXERRNUM) {
                         fputs("too many errors\n", stderr);
Received on Fri Jun 17 2016 - 21:45:14 CEST

This archive was generated by hypermail 2.3.0 : Fri Jun 17 2016 - 21:48:43 CEST