diff --git a/asm/nasm.c b/asm/nasm.c index 149e1042..8ee158f1 100644 --- a/asm/nasm.c +++ b/asm/nasm.c @@ -1830,7 +1830,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); }