Skip to content

Commit

Permalink
in label- warnings display affected label
Browse files Browse the repository at this point in the history
  • Loading branch information
ecm-pushbx committed Nov 22, 2019
1 parent f214d7a commit ca2d991
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions asm/parser.c
Expand Up @@ -687,16 +687,18 @@ insn *parse_line(char *buffer, insn *result)
*! of a typo, but is technically correct NASM syntax (see \k{syntax}.)
*/
if (i == 0) {
nasm_warn(WARN_LABEL_ORPHAN ,
"label alone on a line without a colon might be in error");
nasm_warn(WARN_LABEL_ORPHAN,
"label `%s' alone on a line without a colon might be in error",
result->label);
}
/*!
*!label-no-colon [off] labels without trailing `:'
*! warns about source lines which define a label that
*! is specified without a trailing colon and without an EQU.
*/
nasm_warn(WARN_LABEL_NO_COLON ,
"label not followed by a colon");
nasm_warn(WARN_LABEL_NO_COLON,
"label `%s' not followed by a colon",
result->label);
}
if (i != TOKEN_INSN || tokval.t_integer != I_EQU) {
/*
Expand Down

0 comments on commit ca2d991

Please sign in to comment.