scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 1d32900025c34caca5328141c8a81529b4bb882b
parent e45b100a355a77e396196d4822f5d8b154111c6b
Author: Quentin Rameau <quinq@fifth.space>
Date:   Thu, 16 Jun 2016 17:17:16 +0200

[cc1] remove unecessary value assignment to failure

Diffstat:
Mcc1/error.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git 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);