From 99ac1c46da0e9d19c32855409200067992e7b1a4 Mon Sep 17 00:00:00 2001 From: acqn Date: Mon, 3 Aug 2020 01:15:57 +0800 Subject: [PATCH] Made errors/warnings statistic message visible when there are errors. --- src/cc65/error.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cc65/error.c b/src/cc65/error.c index b0ca97c89..132bf331d 100644 --- a/src/cc65/error.c +++ b/src/cc65/error.c @@ -325,7 +325,8 @@ void ListWarnings (FILE* F) void ErrorReport (void) /* Report errors (called at end of compile) */ { - Print (stdout, 1, "%u errors, %u warnings\n", ErrorCount, WarningCount); + unsigned int V = (ErrorCount != 0 ? 0 : 1); + Print (stdout, V, "%u errors and %u warnings generated.\n", ErrorCount, WarningCount); }