mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-17 09:02:25 +00:00
WARN_ERROR -> opts_werror in parser.c
This commit is contained in:
parent
cb2f89e5bb
commit
46b4eb1f46
1 changed files with 2 additions and 2 deletions
4
parser.c
4
parser.c
|
@ -73,7 +73,7 @@ bool GMQCC_WARN parsewarning(parser_t *parser, int warntype, const char *fmt, ..
|
|||
if (!OPTS_WARN(warntype))
|
||||
return false;
|
||||
|
||||
if (OPTS_WARN(WARN_ERROR)) {
|
||||
if (opts_werror) {
|
||||
parser->errors++;
|
||||
lvl = LVL_ERROR;
|
||||
}
|
||||
|
@ -82,7 +82,7 @@ bool GMQCC_WARN parsewarning(parser_t *parser, int warntype, const char *fmt, ..
|
|||
vprintmsg(lvl, parser->lex->tok->ctx.file, parser->lex->tok->ctx.line, "warning", fmt, ap);
|
||||
va_end(ap);
|
||||
|
||||
return OPTS_WARN(WARN_ERROR);
|
||||
return opts_werror;
|
||||
}
|
||||
|
||||
/**********************************************************************
|
||||
|
|
Loading…
Reference in a new issue