summaryrefslogtreecommitdiff
path: root/include/error.h
diff options
context:
space:
mode:
authorH. Peter Anvin (Intel) <hpa@zytor.com>2018-12-18 12:25:11 -0800
committerH. Peter Anvin (Intel) <hpa@zytor.com>2018-12-18 12:25:11 -0800
commit5df6ca712df59a7f83b27ebd382bfb6ee851fff8 (patch)
treed926fa961f5a91c71317ac34c2867246f8d229eb /include/error.h
parent21da8ae8e5163aa6dd2042d70a7530d7d6accab7 (diff)
downloadnasm-5df6ca712df59a7f83b27ebd382bfb6ee851fff8.tar.gz
With buffered warnings, change the handling of error passes
With buffered warnings, most warnings *must* be issued on every pass, so ERR_PASS1 is simply wrong in most cases. ERR_PASS1 now means "force this warning to be output even in pass_first(). This is to be used for the case where the warning is only executed in pass_first() code; this is highly discouraged as it means the warnings will not appear in the list file and subsequent passes may make the warning suddenly vanish. ERR_PASS2 just as before suppresses an error or warning unless we are in pass_final(). Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Diffstat (limited to 'include/error.h')
-rw-r--r--include/error.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/error.h b/include/error.h
index 9c935214..03a220ec 100644
--- a/include/error.h
+++ b/include/error.h
@@ -93,8 +93,8 @@ static inline vefunc nasm_set_verror(vefunc ve)
#define ERR_NOFILE 0x00000010 /* don't give source file name/line */
#define ERR_HERE 0x00000020 /* point to a specific source location */
#define ERR_USAGE 0x00000040 /* print a usage message */
-#define ERR_PASS1 0x00000080 /* only print this error on pass one */
-#define ERR_PASS2 0x00000100 /* only print this error on pass one */
+#define ERR_PASS1 0x00000080 /* message on pass_first */
+#define ERR_PASS2 0x00000100 /* ignore unless on pass_final */
#define ERR_NO_SEVERITY 0x00000200 /* suppress printing severity */
#define ERR_PP_PRECOND 0x00000400 /* for preprocessor use */