From 85e98e9f5307982b4ec3ee0d00ee7727f9ee7847 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Fri, 23 Nov 2012 19:30:02 +0100 Subject: [PATCH] Don't ftepp_warn after destroying the lexer... --- ftepp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ftepp.c b/ftepp.c index 9e46733..679214f 100644 --- a/ftepp.c +++ b/ftepp.c @@ -1248,12 +1248,12 @@ static ftepp_t *ftepp; static bool ftepp_preprocess_done() { bool retval = true; - lex_close(ftepp->lex); - ftepp->lex = NULL; if (vec_size(ftepp->conditions)) { if (ftepp_warn(ftepp, WARN_MULTIFILE_IF, "#if spanning multiple files, is this intended?")) retval = false; } + lex_close(ftepp->lex); + ftepp->lex = NULL; if (ftepp->itemname) { mem_d(ftepp->itemname); ftepp->itemname = NULL; -- 2.39.2