From 77f53ba6d4cb90e5a7e09b33357ed7c1fe9f6b9d Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin (Intel)" Date: Wed, 12 Dec 2018 14:38:50 -0800 Subject: warnings: rename ERR_WARN_* to WARN_* The prefix ERR_WARN_ is unnecessarily long and may be a disincentive to create new warning categories. Change it to WARN_*, it is still plenty distinctive. Signed-off-by: H. Peter Anvin (Intel) --- output/outdbg.c | 2 +- output/outelf.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'output') diff --git a/output/outdbg.c b/output/outdbg.c index debe30f7..fdf35aa2 100644 --- a/output/outdbg.c +++ b/output/outdbg.c @@ -380,7 +380,7 @@ dbg_pragma(const struct pragma *pragma) errno = 0; arg = strtoul(pragma->tail, &ep, 0); if (errno || *nasm_skip_spaces(ep)) { - nasm_error(ERR_WARNING | ERR_WARN_BAD_PRAGMA | ERR_PASS2, + nasm_error(ERR_WARNING | WARN_BAD_PRAGMA | ERR_PASS2, "invalid %%pragma dbg maxdump argument"); return DIRR_ERROR; } else { diff --git a/output/outelf.c b/output/outelf.c index a32e1335..de99d076 100644 --- a/output/outelf.c +++ b/output/outelf.c @@ -935,7 +935,7 @@ static void elf32_out(int32_t segto, const void *data, } if (gnu16) { - nasm_error(ERR_WARNING | ERR_WARN_GNUELF, + nasm_error(ERR_WARNING | WARN_GNUELF, "8- or 16-bit relocations in ELF32 is a GNU extension"); } else if (asize != 4 && segment != NO_SEG) { nasm_error(ERR_NONFATAL, "Unsupported non-32-bit ELF relocation"); @@ -961,7 +961,7 @@ rel12adr: " segment base references"); } else { if (wrt == NO_SEG) { - nasm_error(ERR_WARNING | ERR_WARN_GNUELF, + nasm_error(ERR_WARNING | WARN_GNUELF, "8- or 16-bit relocations in ELF is a GNU extension"); elf_add_reloc(s, segment, 0, reltype); } else { -- cgit v1.2.1