mirror of
https://github.com/cc65/cc65.git
synced 2025-08-15 06:27:36 +00:00
Added warning on concatenated string literals in _Pragma operations.
This commit is contained in:
@@ -1157,6 +1157,11 @@ void NextToken (void)
|
|||||||
/* Check for string concatenation */
|
/* Check for string concatenation */
|
||||||
if (CurTok.Tok == TOK_SCONST || CurTok.Tok == TOK_WCSCONST) {
|
if (CurTok.Tok == TOK_SCONST || CurTok.Tok == TOK_WCSCONST) {
|
||||||
if (PrevTok.Tok == TOK_SCONST || PrevTok.Tok == TOK_WCSCONST) {
|
if (PrevTok.Tok == TOK_SCONST || PrevTok.Tok == TOK_WCSCONST) {
|
||||||
|
/* Warn on non-ISO behavior */
|
||||||
|
if (InPragmaParser) {
|
||||||
|
Warning ("Concatenated string literals in _Pragma operation");
|
||||||
|
}
|
||||||
|
|
||||||
/* Concatenate strings */
|
/* Concatenate strings */
|
||||||
ConcatLiteral (PrevTok.SVal, CurTok.SVal);
|
ConcatLiteral (PrevTok.SVal, CurTok.SVal);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user