!2244 编译告警清理

Merge pull request !2244 from 吴岳川/master
This commit is contained in:
opengauss-bot
2022-09-26 06:16:19 +00:00
committed by Gitee
2 changed files with 1 additions and 7 deletions

View File

@ -155,7 +155,6 @@ int base_yylex(YYSTYPE* lvalp, YYLTYPE* llocp, core_yyscan_t yyscanner)
int next_token;
core_YYSTYPE cur_yylval;
YYLTYPE cur_yylloc;
errno_t rc = 0;
/* Get next token --- we might already have it */
if (yyextra->lookahead_num != 0) {

View File

@ -291,7 +291,6 @@ extern THR_LOCAL bool stmt_contains_operator_plus;
%type <typnam> func_type
%type <boolean> opt_nowait
%type <ival> OptTemp opt_wait
%type <ival> opt_nowait_or_skip
%type <oncommit> OnCommitOption
@ -7384,11 +7383,7 @@ for_locking_item:
$$ = (Node *) n;
}
;
opt_nowait: NOWAIT { $$ = TRUE; }
| /*EMPTY*/ { $$ = FALSE; }
;
opt_wait: WAIT Iconst { $$ = $2; }
opt_nowait_or_skip:
NOWAIT { $$ = LockWaitError; }