mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-07-24 10:25:42 -04:00
preproc.c: placate tokenize() warnings during expansion definition
This commit is contained in:
parent
8305465cc0
commit
ba935f2bc5
@ -985,7 +985,7 @@ static Token *tokenize(char *line)
|
|||||||
p--;
|
p--;
|
||||||
if (*p)
|
if (*p)
|
||||||
*p++ = '\0';
|
*p++ = '\0';
|
||||||
if (lvl)
|
if (lvl && !defining)
|
||||||
error(ERR_NONFATAL, "unterminated %[ construct");
|
error(ERR_NONFATAL, "unterminated %[ construct");
|
||||||
type = TOK_INDIRECT;
|
type = TOK_INDIRECT;
|
||||||
} else if (*p == '?') {
|
} else if (*p == '?') {
|
||||||
@ -1006,7 +1006,7 @@ static Token *tokenize(char *line)
|
|||||||
p = nasm_skip_string(p);
|
p = nasm_skip_string(p);
|
||||||
if (*p)
|
if (*p)
|
||||||
p++;
|
p++;
|
||||||
else
|
else if(!defining)
|
||||||
error(ERR_NONFATAL|ERR_PASS1, "unterminated %! string");
|
error(ERR_NONFATAL|ERR_PASS1, "unterminated %! string");
|
||||||
} else {
|
} else {
|
||||||
/* %! without string or identifier */
|
/* %! without string or identifier */
|
||||||
@ -1039,7 +1039,7 @@ static Token *tokenize(char *line)
|
|||||||
|
|
||||||
if (*p) {
|
if (*p) {
|
||||||
p++;
|
p++;
|
||||||
} else {
|
} else if(!defining) {
|
||||||
error(ERR_WARNING|ERR_PASS1, "unterminated string");
|
error(ERR_WARNING|ERR_PASS1, "unterminated string");
|
||||||
/* Handling unterminated strings by UNV */
|
/* Handling unterminated strings by UNV */
|
||||||
/* type = -1; */
|
/* type = -1; */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user