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>
This commit is contained in:
H. Peter Anvin (Intel) 2018-12-13 21:45:59 -08:00
parent 152aadef66
commit 190e846563

View File

@ -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);
}