summaryrefslogtreecommitdiff
path: root/asm/parser.c
diff options
context:
space:
mode:
authorH. Peter Anvin (Intel) <hpa@zytor.com>2018-12-14 13:33:24 -0800
committerH. Peter Anvin (Intel) <hpa@zytor.com>2018-12-14 13:33:24 -0800
commit80c4f23c52427382e455fd656bcbeeb60d725811 (patch)
treef1e7c328f89b01500d16ad857f171bc110be2206 /asm/parser.c
parent727c85263fd07dd2a4db77f17a2b2dfbdca79458 (diff)
downloadnasm-80c4f23c52427382e455fd656bcbeeb60d725811.tar.gz
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>
Diffstat (limited to 'asm/parser.c')
-rw-r--r--asm/parser.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/asm/parser.c b/asm/parser.c
index c34f8337..62a0b171 100644
--- a/asm/parser.c
+++ b/asm/parser.c
@@ -469,7 +469,7 @@ restart_parse:
*! 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 @@ restart_parse:
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 @@ is_expression:
*/
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 @@ is_expression:
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");
}
}