aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2018-12-10 21:14:57 -0800
committerH. Peter Anvin <hpa@zytor.com>2018-12-10 21:14:57 -0800
commit54aac9d3c1b501050e6e75823317a4e34d6b2066 (patch)
treea2735e905bf04e07f187223ee86d33435049dfe0
parent48a810fc19bd3c94e781610de1b3ddda289986b2 (diff)
downloadnasm-54aac9d3c1b501050e6e75823317a4e34d6b2066.tar.gz
nasm-54aac9d3c1b501050e6e75823317a4e34d6b2066.tar.xz
nasm-54aac9d3c1b501050e6e75823317a4e34d6b2066.zip
errors: add ERR_NOTE and a default clause to error dispositionnasm-2.14.01rc2
ERR_NOTE has no action. Have a default clause as well, for good measure. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--asm/nasm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/asm/nasm.c b/asm/nasm.c
index fffe0ffd..d1a4fe0d 100644
--- a/asm/nasm.c
+++ b/asm/nasm.c
@@ -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; /* ??? */
}
}