mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-19 18:00:23 +08:00
warnings: change WARN_MNP -> WARN_MACRO_PARAMS
This one got missed during constant name conversion. Make the constants match the options. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
parent
df2195b6a9
commit
26572c6e37
@ -4285,7 +4285,7 @@ again:
|
||||
m->casesense)))
|
||||
m = m->next;
|
||||
if (!m)
|
||||
nasm_warnf(ERR_PASS1|WARN_MNP,
|
||||
nasm_warnf(ERR_PASS1|WARN_MACRO_PARAMS,
|
||||
"macro `%s' exists, "
|
||||
"but not taking %d parameters",
|
||||
mstart->text, nparam);
|
||||
@ -4585,7 +4585,7 @@ static MMacro *is_mmacro(Token * tline, Token *** params_array)
|
||||
* After all that, we didn't find one with the right number of
|
||||
* parameters. Issue a warning, and fail to expand the macro.
|
||||
*/
|
||||
nasm_warnf(ERR_PASS1|WARN_MNP,
|
||||
nasm_warnf(ERR_PASS1|WARN_MACRO_PARAMS,
|
||||
"macro `%s' exists, but not taking %d parameters",
|
||||
tline->text, nparam);
|
||||
nasm_free(params);
|
||||
|
@ -108,7 +108,7 @@ static inline vefunc nasm_set_verror(vefunc ve)
|
||||
#define WARN_MASK WARN(~0)
|
||||
#define WARN_IDX(x) ((x) >> WARN_SHR)
|
||||
|
||||
#define WARN_MNP WARN( 1) /* macro-num-parameters warning */
|
||||
#define WARN_MACRO_PARAMS WARN( 1) /* macro-num-parameters warning */
|
||||
#define WARN_MACRO_SELFREF WARN( 2) /* macro self-reference */
|
||||
#define WARN_MACRO_DEFAULTS WARN( 3) /* macro default parameters check */
|
||||
#define WARN_ORPHAN_LABELS WARN( 4) /* orphan label (no colon, and alone on line) */
|
||||
|
Loading…
x
Reference in New Issue
Block a user