1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 04:30:10 +00:00

Made errors/warnings statistic message visible when there are errors.

This commit is contained in:
acqn 2020-08-03 01:15:57 +08:00 committed by Oliver Schmidt
parent 44e3080ea9
commit 99ac1c46da

View File

@ -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);
}