From: Wolfgang (Blub) Bumiller Date: Sat, 18 Aug 2012 12:51:12 +0000 (+0200) Subject: WARN_ERROR -> opts_werror in parser.c X-Git-Tag: 0.1-rc1~226 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=46b4eb1f4689fc272ce2a233c9dad2b1228482f0;p=xonotic%2Fgmqcc.git WARN_ERROR -> opts_werror in parser.c --- diff --git a/parser.c b/parser.c index 0c690c8..fdf6bce 100644 --- a/parser.c +++ b/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; } /**********************************************************************