]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
WARN_ERROR -> opts_werror in parser.c
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 18 Aug 2012 12:51:12 +0000 (14:51 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 18 Aug 2012 12:51:12 +0000 (14:51 +0200)
parser.c

index 0c690c8db7f8651b6fcfac43cdee2d4683e97271..fdf6bce8d7a060d04ef854f89992ccd5141ee48f 100644 (file)
--- 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;
 }
 
 /**********************************************************************