Fix the clang fix. Compiler messages are visible again.
[COMPILER] * BUG: Fix the clang fix. Compiler messages are visible again.
This commit is contained in:
parent
dd26e934ac
commit
38eb07adf5
@ -84,22 +84,22 @@ char *ERROR_get(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void _add_char(uchar c, int *n)
|
void _add_char(uchar c, int *n)
|
||||||
{
|
{
|
||||||
if (*n >= MAX_ERROR_MSG)
|
if (*n >= MAX_ERROR_MSG)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ERROR_info.msg[*n++] = c;
|
ERROR_info.msg[(*n)++] = c;
|
||||||
}
|
}
|
||||||
|
|
||||||
void _add_string(const char *s, int *n)
|
void _add_string(const char *s, int *n)
|
||||||
{
|
{
|
||||||
while (*s)
|
while (*s)
|
||||||
{
|
{
|
||||||
_add_char(*s, n);
|
_add_char(*s, n);
|
||||||
s++;
|
s++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ERROR_define(const char *pattern, const char *arg[])
|
void ERROR_define(const char *pattern, const char *arg[])
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user