mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-17 09:02:25 +00:00
Fix indentation of compile_warning
This commit is contained in:
parent
535fd5744b
commit
0252c0a47a
1 changed files with 8 additions and 8 deletions
16
con.c
16
con.c
|
@ -379,22 +379,22 @@ void compile_error(lex_ctx ctx, const char *msg, ...)
|
||||||
|
|
||||||
bool GMQCC_WARN compile_warning(lex_ctx ctx, int warntype, const char *fmt, ...)
|
bool GMQCC_WARN compile_warning(lex_ctx ctx, int warntype, const char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
int lvl = LVL_WARNING;
|
int lvl = LVL_WARNING;
|
||||||
|
|
||||||
if (!OPTS_WARN(warntype))
|
if (!OPTS_WARN(warntype))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (opts_werror) {
|
if (opts_werror) {
|
||||||
++compile_errors;
|
++compile_errors;
|
||||||
lvl = LVL_ERROR;
|
lvl = LVL_ERROR;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
++compile_warnings;
|
++compile_warnings;
|
||||||
|
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
con_vprintmsg(lvl, ctx.file, ctx.line, "warning", fmt, ap);
|
con_vprintmsg(lvl, ctx.file, ctx.line, "warning", fmt, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
|
||||||
return opts_werror;
|
return opts_werror;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue