]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - error.c
-Weffectless-statement, on by default, creates 'statement has no effect' warning
[xonotic/gmqcc.git] / error.c
diff --git a/error.c b/error.c
index 3187aeea8510feada75b313871eb0f318dbe9f45..e6a1c7da2f5f499f483d03b2de47c462e0756803 100644 (file)
--- a/error.c
+++ b/error.c
@@ -58,7 +58,7 @@ void printmsg(int level, const char *name, size_t line, const char *msgtype, con
 
 void cvprintmsg(lex_ctx ctx, int lvl, const char *msgtype, const char *msg, va_list ap)
 {
-    vprintmsg(lvl, ctx.name, ctx.line, msgtype, msg, ap);
+    vprintmsg(lvl, ctx.file, ctx.line, msgtype, msg, ap);
 }
 
 void cprintmsg (lex_ctx ctx, int lvl, const char *msgtype, const char *msg, ...)