scc

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

commit 2bccc4ddb6e3681bc28486aee953f8806fc1001a
parent db7173fd802222e8e0fcb50e048eb586d6b14ad9
Author: Quentin Rameau <quinq@fifth.space>
Date:   Wed, 15 Jun 2016 15:25:48 +0200

[driver] fix failed tool value in terminate

CC1 value is 0, so have a default value of -1

Diffstat:
Mdriver/posix/scc.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/driver/posix/scc.c b/driver/posix/scc.c @@ -69,7 +69,7 @@ static void terminate(void) { struct tool *t; - int tool, failed = 0; + int tool, failed = -1; for (tool = 0; tool < LAST_TOOL; ++tool) { t = &tools[tool];