error messages: print "error: ..."

This commit is contained in:
grischka 2009-06-17 02:10:56 +02:00
parent e4ae77c7bb
commit ec54c34b9e

View file

@ -803,6 +803,8 @@ void error1(TCCState *s1, int is_warning, const char *fmt, va_list ap)
}
if (is_warning)
strcat_printf(buf, sizeof(buf), "warning: ");
else
strcat_printf(buf, sizeof(buf), "error: ");
strcat_vprintf(buf, sizeof(buf), fmt, ap);
if (!s1->error_func) {