mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-18 16:25:05 +08:00
asm/labels.c: use error helpers
Replace explicit calls to nasm_error() with error helpers. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
d351efc97d
commit
a7bc437eab
@ -501,14 +501,13 @@ void define_label(const char *label, int32_t segment,
|
||||
/*
|
||||
* Defined elsewhere in the program, seen in this pass.
|
||||
*/
|
||||
nasm_error(ERR_NONFATAL,
|
||||
"label `%s' inconsistently redefined",
|
||||
lptr->defn.label);
|
||||
nasm_nonfatal("label `%s' inconsistently redefined",
|
||||
lptr->defn.label);
|
||||
|
||||
src_get(&saved_line, &saved_fname);
|
||||
src_set(lptr->defn.def_line, lptr->defn.def_file);
|
||||
nasm_error(ERR_NOTE, "label `%s' originally defined here",
|
||||
lptr->defn.label);
|
||||
nasm_note("label `%s' originally defined here",
|
||||
lptr->defn.label);
|
||||
src_set(saved_line, saved_fname);
|
||||
} else if (pass0 > 1 && lptr->defn.type != LBL_SPECIAL) {
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user