diff options
author | H. Peter Anvin (Intel) <hpa@zytor.com> | 2020-06-05 13:19:45 -0700 |
---|---|---|
committer | H. Peter Anvin (Intel) <hpa@zytor.com> | 2020-06-05 13:19:45 -0700 |
commit | f7fadcd24567094fd140500e9590a79853e37ece (patch) | |
tree | 8667ba3845e28a4e676670871cba7898f67bf7da | |
parent | cc27f60fb03fb3a28f878a79bd33034177b6a886 (diff) | |
download | nasm-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>
-rw-r--r-- | asm/nasm.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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))) { /* |