mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +00:00
Fix some usually disabled compiler warnings (#1286)
* Fixes from temporarily re-enabling more compiler warnings * More edits suggested by cppcheck * Fix hanging on append_yylval_string * Fix FOR loop increment
This commit is contained in:
@@ -1421,8 +1421,8 @@ static char const *readInterpolation(size_t depth)
|
||||
}
|
||||
|
||||
#define append_yylval_string(c) do { \
|
||||
char v = (c); /* Evaluate c exactly once in case it has side effects. */ \
|
||||
if (i < sizeof(yylval.string)) \
|
||||
/* Evaluate c exactly once in case it has side effects */ \
|
||||
if (char v = (c); i < sizeof(yylval.string)) \
|
||||
yylval.string[i++] = v; \
|
||||
} while (0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user