]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - lexer.c
Cleanups
[xonotic/gmqcc.git] / lexer.c
diff --git a/lexer.c b/lexer.c
index ac230b6cad39d2e00176f4ac083a241fbff704b7..541104127393fb9ba393f64f9f49edd62214d97d 100644 (file)
--- 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);