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:
H. Peter Anvin (Intel) 2018-12-13 16:51:45 -08:00
parent df2195b6a9
commit 26572c6e37
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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) */