aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2018-12-10 22:11:24 -0800
committerH. Peter Anvin <hpa@zytor.com>2018-12-10 22:46:28 -0800
commit5bdc235e0284aa572ca7292e99466462199537f7 (patch)
tree0416671435f6f055c6e418490cba1378dd7cbf91
parentc55702ecb8bc3a759e01eeeeb2fb34caa8dae08a (diff)
downloadnasm-5bdc235e0284aa572ca7292e99466462199537f7.tar.gz
nasm-5bdc235e0284aa572ca7292e99466462199537f7.tar.xz
nasm-5bdc235e0284aa572ca7292e99466462199537f7.zip
error: remove unused ERR_TOPFILE
The flag ERR_TOPFILE was not used anywhere, remove it. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--asm/nasm.c2
-rw-r--r--include/error.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/asm/nasm.c b/asm/nasm.c
index c7ff8060..8f5fced1 100644
--- a/asm/nasm.c
+++ b/asm/nasm.c
@@ -1724,7 +1724,7 @@ static void nasm_verror_gnu(int severity, const char *fmt, va_list ap)
if (!(severity & ERR_NOFILE)) {
src_get(&lineno, &currentfile);
- if (!currentfile || (severity & ERR_TOPFILE)) {
+ if (!currentfile) {
currentfile = inname && inname[0] ?
inname : outname && outname[0] ?
outname : NULL;
diff --git a/include/error.h b/include/error.h
index cbd75e79..12bf7020 100644
--- a/include/error.h
+++ b/include/error.h
@@ -83,7 +83,6 @@ static inline vefunc nasm_set_verror(vefunc ve)
* and dump core for reference */
#define ERR_MASK 0x00000007 /* mask off the above codes */
#define ERR_NOFILE 0x00000010 /* don't give source file name/line */
-#define ERR_TOPFILE 0x00000020 /* give the top input file name only */
#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 */