From f11f0c547716a393071a0116e30f91ece90844f7 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 4 Jul 2024 23:23:06 +0900 Subject: [PATCH] [qfcc] Return an error expression for undefined symbols Fixes some of the error spam that resulted from the expression const-correctness pass a while back. --- tools/qfcc/source/expr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/qfcc/source/expr.c b/tools/qfcc/source/expr.c index f1cd3047c..843c90aa5 100644 --- a/tools/qfcc/source/expr.c +++ b/tools/qfcc/source/expr.c @@ -100,7 +100,7 @@ convert_name (const expr_t *e) return new_string_expr (GETSTR (e->loc.file)); } if (!sym->table) { - error (e, "%s undefined", sym->name); + e = error (e, "%s undefined", sym->name); sym->type = type_default; //FIXME need a def return e;