mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-02-23 17:29:23 +08:00
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:
parent
152aadef66
commit
190e846563
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user