scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 4533b8d7703c036ef84fcabd94a5b288209ade0a
parent ac80bb6fe0091250d49c49199750f82a0d48b89e
Author: Quentin Rameau <quinq@fifth.space>
Date:   Tue,  8 Oct 2019 12:44:18 +0200

[cc] Only warn about unexpected internal failures

Diffstat:
Msrc/cmd/cc/posix/cc.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/cmd/cc/posix/cc.c b/src/cmd/cc/posix/cc.c @@ -391,7 +391,8 @@ valid(int tool, struct tool *t) goto fail; internal: - fprintf(stderr, "cc:%s: internal error\n", t->bin); + if (!failure) + fprintf(stderr, "cc:%s: internal error\n", t->bin); fail: failure = 1; return 0;