mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-04-18 18:50:23 +08:00
BR3064459: Missing %endif doesn't always cause error
error() routine is conditional dependent so we should use nasm_error instead to yield message unconditionally. Reported-by: Christian Masloch Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
9bcdd21efd
commit
5ace91d681
@ -4925,9 +4925,11 @@ static char *pp_getline(void)
|
||||
{
|
||||
Include *i = istk;
|
||||
fclose(i->fp);
|
||||
if (i->conds)
|
||||
error(ERR_FATAL,
|
||||
"expected `%%endif' before end of file");
|
||||
if (i->conds) {
|
||||
/* nasm_error can't be conditionally suppressed */
|
||||
nasm_error(ERR_FATAL,
|
||||
"expected `%%endif' before end of file");
|
||||
}
|
||||
/* only set line and file name if there's a next node */
|
||||
if (i->next) {
|
||||
src_set_linnum(i->lineno);
|
||||
|
Loading…
x
Reference in New Issue
Block a user