X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=lexer.c;h=541104127393fb9ba393f64f9f49edd62214d97d;hb=b30c3ff8d468dffb1fc9aab057f43e90a65a1174;hp=ac230b6cad39d2e00176f4ac083a241fbff704b7;hpb=6db2e69f9a9411f4d5cb6923b1ead3706d7fe195;p=xonotic%2Fgmqcc.git diff --git a/lexer.c b/lexer.c index ac230b6..5411041 100644 --- a/lexer.c +++ b/lexer.c @@ -71,12 +71,13 @@ static void lexerror(lex_file *lex, const char *fmt, ...) static bool lexwarn(lex_file *lex, int warntype, const char *fmt, ...) { - bool r; - lex_ctx ctx; - va_list ap; + bool r; + lex_ctx_t ctx; + va_list ap; - ctx.file = lex->name; - ctx.line = lex->sline; + ctx.file = lex->name; + ctx.line = lex->sline; + ctx.column = lex->column; va_start(ap, fmt); r = vcompile_warning(ctx, warntype, fmt, ap);