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>
This commit is contained in:
H. Peter Anvin (Intel) 2020-06-04 16:19:01 -07:00
parent 4964d80fe4
commit c44709c964

View File

@ -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