mirror of https://github.com/arendst/Tasmota.git
Berry fix warning in be_lexer (#19892)
This commit is contained in:
parent
d148cc21f6
commit
0cd1ae965c
|
@ -271,9 +271,7 @@ static void skip_comment(blexer *lexer)
|
||||||
c = next(lexer);
|
c = next(lexer);
|
||||||
} while (!(mark && c == '#') && c != EOS);
|
} while (!(mark && c == '#') && c != EOS);
|
||||||
if (c == EOS) {
|
if (c == EOS) {
|
||||||
char tmp[64];
|
be_lexerror(lexer, be_pushfstring(lexer->vm, "unterminated comment block started in line %d", lno));
|
||||||
sprintf(tmp, "unterminated comment block started in line %d", lno);
|
|
||||||
be_lexerror(lexer, tmp);
|
|
||||||
}
|
}
|
||||||
next(lexer); /* skip '#' */
|
next(lexer); /* skip '#' */
|
||||||
} else { /* line comment */
|
} else { /* line comment */
|
||||||
|
|
Loading…
Reference in New Issue