summaryrefslogtreecommitdiff
path: root/output/outas86.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 /output/outas86.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 'output/outas86.c')
-rw-r--r--output/outas86.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/output/outas86.c b/output/outas86.c
index 77fc18b8..4d2a92ab 100644
--- a/output/outas86.c
+++ b/output/outas86.c
@@ -304,13 +304,13 @@ static void as86_out(int32_t segto, const void *data,
else if (segto == bssindex)
s = NULL;
else {
- nasm_warn("attempt to assemble code in"
+ nasm_warn(WARN_OTHER, "attempt to assemble code in"
" segment %d: defaulting to `.text'", segto);
s = &stext;
}
if (!s && type != OUT_RESERVE) {
- nasm_warn("attempt to initialize memory in the"
+ nasm_warn(WARN_OTHER, "attempt to initialize memory in the"
" BSS section: ignored");
bsslen += realsize(type, size);
return;
@@ -320,7 +320,7 @@ static void as86_out(int32_t segto, const void *data,
if (type == OUT_RESERVE) {
if (s) {
- nasm_warn("uninitialized space declared in"
+ nasm_warn(WARN_OTHER, "uninitialized space declared in"
" %s section: zeroing",
(segto == stext.index ? "code" : "data"));
as86_sect_write(s, NULL, size);