Merge pull request #2454 from amaanq/eof-unused
fix: suppress unused warnings for eof
This commit is contained in:
commit
981bad03d0
1 changed files with 7 additions and 0 deletions
|
|
@ -130,9 +130,16 @@ struct TSLanguage {
|
|||
* Lexer Macros
|
||||
*/
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define UNUSED __pragma(warning(suppress : 4101))
|
||||
#else
|
||||
#define UNUSED __attribute__((unused))
|
||||
#endif
|
||||
|
||||
#define START_LEXER() \
|
||||
bool result = false; \
|
||||
bool skip = false; \
|
||||
UNUSED \
|
||||
bool eof = false; \
|
||||
int32_t lookahead; \
|
||||
goto start; \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue