mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-22 02:31:28 +00:00
Fix condition on whether or not to print 'error' or 'warning'
This commit is contained in:
parent
6cd821d459
commit
5b98011f5f
1 changed files with 1 additions and 1 deletions
2
conout.c
2
conout.c
|
@ -406,7 +406,7 @@ bool GMQCC_WARN vcompile_warning(lex_ctx ctx, int warntype, const char *fmt, va_
|
|||
else
|
||||
++compile_warnings;
|
||||
|
||||
con_vprintmsg_c(lvl, ctx.file, ctx.line, (opts.werror ? "error" : "warning"), fmt, ap, warn_name);
|
||||
con_vprintmsg_c(lvl, ctx.file, ctx.line, ((lvl == LVL_ERROR) ? "error" : "warning"), fmt, ap, warn_name);
|
||||
|
||||
return OPTS_WERROR(warntype);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue