errors: add ERR_NOTE and a default clause to error disposition

ERR_NOTE has no action. Have a default clause as well, for good
measure.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2018-12-10 21:14:57 -08:00
parent 48a810fc19
commit 54aac9d3c1

View File

@ -1929,6 +1929,7 @@ static void nasm_verror_common(int severity, const char *fmt, va_list args)
preproc->error_list_macros(severity);
switch (severity & ERR_MASK) {
case ERR_NOTE:
case ERR_DEBUG:
/* no further action, by definition */
break;
@ -1965,6 +1966,8 @@ static void nasm_verror_common(int severity, const char *fmt, va_list args)
}
exit(3);
break;
default:
break; /* ??? */
}
}