threading code deactivated; tiny C bugfix: don't report warnings to error callback

This commit is contained in:
Araq
2010-09-19 21:35:44 +02:00
parent c065694598
commit 93b3c03dbd
15 changed files with 208 additions and 135 deletions

View File

@@ -808,11 +808,11 @@ void error1(TCCState *s1, int is_warning, const char *fmt, va_list ap)
if (!s1->error_func) {
/* default case: stderr */
fprintf(stderr, "%s\n", buf);
} else {
}
if (!is_warning || s1->warn_error) {
s1->error_func(s1->error_opaque, buf);
}
if (!is_warning || s1->warn_error)
s1->nb_errors++;
}
}
void tcc_set_error_func(TCCState *s, void *error_opaque,