diff options
author | H. Peter Anvin (Intel) <hpa@zytor.com> | 2018-12-13 21:45:59 -0800 |
---|---|---|
committer | H. Peter Anvin (Intel) <hpa@zytor.com> | 2018-12-13 21:45:59 -0800 |
commit | 190e8465630e9e1fd8a211256a9fdcd6cc9176d7 (patch) | |
tree | 82670bf409a693d419f18bf81b1c0ee63c1ee6b0 | |
parent | 152aadef66c1197156fd09033af5973dea48835e (diff) | |
download | nasm-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |