summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin (Intel) <hpa@zytor.com>2020-06-04 16:19:01 -0700
committerH. Peter Anvin (Intel) <hpa@zytor.com>2020-06-04 16:19:01 -0700
commitc44709c964fe3ebccb63eeea6050076ad89cd333 (patch)
treed9e4d36edf4df28b99cdb316dde5f6897d27ac77
parent4964d80fe48582c95b88dd84d8e9d4e5a17c1de2 (diff)
downloadnasm-c44709c964fe3ebccb63eeea6050076ad89cd333.tar.gz
preproc: don't call nasm_error_hold_push() twice
We must not call nasm_error_hold_push() twice... the obvious leak of the error stack caused all kinds of errors to be suppressed. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
-rw-r--r--asm/preproc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/asm/preproc.c b/asm/preproc.c
index 82b3825e..83a61b42 100644
--- a/asm/preproc.c
+++ b/asm/preproc.c
@@ -5491,7 +5491,6 @@ static Token *expand_smacro_noreset(Token *org_tline)
}
};
Token **tail = &tline;
- errhold = nasm_error_hold_push();
/*
* We hold warnings/errors until we are done this this loop. It is