Skip to content

Commit

Permalink
tp: use unused variable to fix compile in G3
Browse files Browse the repository at this point in the history
Change-Id: If27c5707b16d46f6fcf86adffa41539671769945
  • Loading branch information
LalitMaganti committed Sep 13, 2024
1 parent 9dc66cc commit c58a23d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,7 @@ extern "C" PreprocessorGrammarApplyList* OnPreprocessorAppendApplyList(
}

extern "C" void OnPreprocessorFreeApplyList(
PreprocessorGrammarState*,
PreprocessorGrammarApplyList* list) {
delete list;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ static void yy_destructor(
/********* Begin destructor definitions ***************************************/
case 17: /* applylist */
{
OnPreprocessorFreeApplyList((yypminor->yy2));
OnPreprocessorFreeApplyList(state, (yypminor->yy2));
}
break;
/********* End destructor definitions *****************************************/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ apply ::= APPLY COMMA|AND(J) TRUE|FALSE(P) ID(X) LP applylist(Y) RP LP applylist
}

%type applylist {struct PreprocessorGrammarApplyList*}
%destructor applylist { OnPreprocessorFreeApplyList($$); }
%destructor applylist { OnPreprocessorFreeApplyList(state, $$); }
applylist(A) ::= applylist(F) COMMA tokenlist(X). {
A = OnPreprocessorAppendApplyList(F, &X);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ struct PreprocessorGrammarApplyList* OnPreprocessorCreateApplyList();
struct PreprocessorGrammarApplyList* OnPreprocessorAppendApplyList(
struct PreprocessorGrammarApplyList*,
struct PreprocessorGrammarTokenBounds*);
void OnPreprocessorFreeApplyList(struct PreprocessorGrammarApplyList*);
void OnPreprocessorFreeApplyList(struct PreprocessorGrammarState*,
struct PreprocessorGrammarApplyList*);

#ifdef __cplusplus
}
Expand Down

0 comments on commit c58a23d

Please sign in to comment.