scc

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

commit b2fdb4fc96e55083316e80a1c42dafea7b8184fc
parent 2974c0654f4634a58fb6d6d588dd4eebd143a383
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;