commit 1d32900025c34caca5328141c8a81529b4bb882b
Author:     Quentin Rameau <[email protected]>
AuthorDate: Thu Jun 16 17:17:16 2016 +0200
Commit:     Quentin Rameau <[email protected]>
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
@@ -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);

Reply via email to