Skip to content

Commit

Permalink
fix buck build
Browse files Browse the repository at this point in the history
Summary:
Was getting build errors

```
fbcode/python/errpy/vendor/tree-sitter-python/src/parser.c:8930:3: error: variable 'eof' set but not used [-Werror,-Wunused-but-set-variable]
  START_LEXER();
  ^
fbcode/python/errpy/vendor/tree-sitter-python/src/tree_sitter/parser.h:136:8: note: expanded from macro 'START_LEXER'
  bool eof = false;             \
       ^
1 error generated.
```

Reviewed By: stroxler

Differential Revision: D58826878

fbshipit-source-id: 6adb9d84afca5fa8f4de330f8f34b37f1fb82794
  • Loading branch information
yangdanny97 authored and facebook-github-bot committed Jun 20, 2024
1 parent 743b114 commit a4e3cf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions vendor/tree-sitter-python/src/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -7987,7 +7987,7 @@ static inline bool sym_identifier_character_set_3(int32_t c) {

static bool ts_lex(TSLexer *lexer, TSStateId state) {
START_LEXER();
eof = lexer->eof(lexer);
bool eof = lexer->eof(lexer);
switch (state) {
case 0:
if (eof) ADVANCE(41);
Expand Down Expand Up @@ -8928,7 +8928,7 @@ static bool ts_lex(TSLexer *lexer, TSStateId state) {

static bool ts_lex_keywords(TSLexer *lexer, TSStateId state) {
START_LEXER();
eof = lexer->eof(lexer);
bool eof = lexer->eof(lexer);
switch (state) {
case 0:
if (lookahead == '\t' ||
Expand Down
1 change: 0 additions & 1 deletion vendor/tree-sitter-python/src/tree_sitter/parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ struct TSLanguage {
#define START_LEXER() \
bool result = false; \
bool skip = false; \
bool eof = false; \
int32_t lookahead; \
goto start; \
next_state: \
Expand Down

0 comments on commit a4e3cf5

Please sign in to comment.