summaryrefslogtreecommitdiffstats
path: root/match.c
diff options
context:
space:
mode:
Diffstat (limited to 'match.c')
-rw-r--r--match.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/match.c b/match.c
index 5a711b1b..86156193 100644
--- a/match.c
+++ b/match.c
@@ -4408,8 +4408,10 @@ static val v_load(match_files_ctx *c)
parse_once(self, stream, name);
gc_state(gc);
- if (parser->errors)
+ if (parser->errors) {
+ uw_release_deferred_warnings();
sem_error(specline, lit("~s: errors encountered in ~a"), sym, path, nao);
+ }
if (sym == include_s) {
ret = parser->syntax_tree;