fix: suppress unused warnings for eof

This commit is contained in:
Amaan Qureshi 2023-08-01 11:16:16 +01:00
parent 374b973483
commit 614f2f61c8

View file

@ -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; \