nasm_warnf() -> nasm_warn()
We want to strongly encourage writers of warnings to create warning
categories, so remove the flagless nasm_warn() and change nasm_warnf()
to nasm_warn().
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
diff --git a/asm/parser.c b/asm/parser.c
index c34f833..62a0b17 100644
--- a/asm/parser.c
+++ b/asm/parser.c
@@ -469,7 +469,7 @@
*! a label without a trailing colon. This is most likely indicative
*! of a typo, but is technically correct NASM syntax (see \k{syntax}.)
*/
- nasm_warnf(WARN_ORPHAN_LABELS | ERR_PASS1,
+ nasm_warn(WARN_ORPHAN_LABELS | ERR_PASS1,
"label alone on a line without a colon might be in error");
}
if (i != TOKEN_INSN || tokval.t_integer != I_EQU) {
@@ -519,7 +519,7 @@
int slot = prefix_slot(tokval.t_integer);
if (result->prefixes[slot]) {
if (result->prefixes[slot] == tokval.t_integer)
- nasm_warnf(ERR_PASS1, "instruction has redundant prefixes");
+ nasm_warn(ERR_PASS1, "instruction has redundant prefixes");
else
nasm_nonfatal("instruction has conflicting prefixes");
}
@@ -736,7 +736,7 @@
*/
goto fail;
} else /* DB ... */ if (oper_num == 0)
- nasm_warnf(ERR_PASS1, "no operand for data declaration");
+ nasm_warn(ERR_PASS1, "no operand for data declaration");
else
result->operands = oper_num;
@@ -1130,7 +1130,7 @@
op->basereg = value->type;
if (rs && (op->type & SIZE_MASK) != rs)
- nasm_warnf(ERR_PASS1, "register size specification ignored");
+ nasm_warn(ERR_PASS1, "register size specification ignored");
}
}