error messages: print "error: ..."
This commit is contained in:
parent
e4ae77c7bb
commit
ec54c34b9e
1 changed files with 2 additions and 0 deletions
2
libtcc.c
2
libtcc.c
|
@ -803,6 +803,8 @@ void error1(TCCState *s1, int is_warning, const char *fmt, va_list ap)
|
||||||
}
|
}
|
||||||
if (is_warning)
|
if (is_warning)
|
||||||
strcat_printf(buf, sizeof(buf), "warning: ");
|
strcat_printf(buf, sizeof(buf), "warning: ");
|
||||||
|
else
|
||||||
|
strcat_printf(buf, sizeof(buf), "error: ");
|
||||||
strcat_vprintf(buf, sizeof(buf), fmt, ap);
|
strcat_vprintf(buf, sizeof(buf), fmt, ap);
|
||||||
|
|
||||||
if (!s1->error_func) {
|
if (!s1->error_func) {
|
||||||
|
|
Loading…
Reference in a new issue