summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin (Intel) <hpa@zytor.com>2018-12-13 21:45:59 -0800
committerH. Peter Anvin (Intel) <hpa@zytor.com>2018-12-13 21:45:59 -0800
commit190e8465630e9e1fd8a211256a9fdcd6cc9176d7 (patch)
tree82670bf409a693d419f18bf81b1c0ee63c1ee6b0
parent152aadef66c1197156fd09033af5973dea48835e (diff)
downloadnasm-190e8465630e9e1fd8a211256a9fdcd6cc9176d7.tar.gz
errors: correct message saying -w+error= ... is in use when it is not
Correct the test for when -w+error= is the correct thing to print. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
-rw-r--r--asm/nasm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/asm/nasm.c b/asm/nasm.c
index 1825aa35..35693761 100644
--- a/asm/nasm.c
+++ b/asm/nasm.c
@@ -1854,7 +1854,7 @@ static void nasm_verror_asm(int severity, const char *fmt, va_list args)
*warnsuf = 0;
if (spec_type == ERR_WARNING) {
snprintf(warnsuf, sizeof warnsuf, " [-w+%s%s]",
- true_type ? "error=" : "",
+ (true_type >= ERR_NONFATAL) ? "error=" : "",
warnings[warn_index(severity)].name);
}