threading code deactivated; tiny C bugfix: don't report warnings to error callback
This commit is contained in:
parent
c065694598
commit
93b3c03dbd
15 changed files with 208 additions and 135 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue