From f7fadcd24567094fd140500e9590a79853e37ece Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin (Intel)" Date: Fri, 5 Jun 2020 13:19:45 -0700 Subject: Fix missing "here" from error messages The "here" or "in an unknown location" suffix was inadvertently dropped. Signed-off-by: H. Peter Anvin (Intel) --- asm/nasm.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'asm') diff --git a/asm/nasm.c b/asm/nasm.c index 2f6634ef..51a74dfc 100644 --- a/asm/nasm.c +++ b/asm/nasm.c @@ -2061,6 +2061,10 @@ static void nasm_issue_error(struct nasm_errtext *et) const char *file = currentfile ? currentfile : no_file_name; const char *here = ""; + if (severity & ERR_HERE) { + here = currentfile ? " here" : " in an unknown location"; + } + if (warn_list && true_type < ERR_NONFATAL && !(pass_first() && (severity & ERR_PASS1))) { /* -- cgit v1.2.1