summaryrefslogtreecommitdiff
path: root/asm
diff options
context:
space:
mode:
authorH. Peter Anvin (Intel) <hpa@zytor.com>2020-06-05 13:19:45 -0700
committerH. Peter Anvin (Intel) <hpa@zytor.com>2020-06-05 13:19:45 -0700
commitf7fadcd24567094fd140500e9590a79853e37ece (patch)
tree8667ba3845e28a4e676670871cba7898f67bf7da /asm
parentcc27f60fb03fb3a28f878a79bd33034177b6a886 (diff)
downloadnasm-f7fadcd24567094fd140500e9590a79853e37ece.tar.gz
Fix missing "here" from error messages
The "here" or "in an unknown location" suffix was inadvertently dropped. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Diffstat (limited to 'asm')
-rw-r--r--asm/nasm.c4
1 files changed, 4 insertions, 0 deletions
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))) {
/*