fix compile warnings

This commit is contained in:
gm
2021-06-16 14:53:52 +08:00
committed by MizuhaHimuraki
parent ad8465b5ce
commit 8c4a2f26a6
79 changed files with 2878 additions and 2575 deletions

View File

@ -216,7 +216,9 @@ int parse_sql_stmt(ParseResult* parse_result)
return ret;
}
void setup_token_pos_info(ParseNode* node, int off, int len)
void setup_token_pos_info(ParseNode *node __attribute__((unused)),
int off __attribute__((unused)),
int len __attribute__((unused)))
{
#ifdef SQL_PARSER_COMPILATION
node->token_off_ = off;
@ -226,7 +228,10 @@ void setup_token_pos_info(ParseNode* node, int off, int len)
#endif
}
int setup_token_pos_info_and_dup_string(ParseNode* node, ParseResult* result, int start, int end)
int setup_token_pos_info_and_dup_string(ParseNode *node __attribute__((unused)),
ParseResult *result __attribute__((unused)),
int start __attribute__((unused)),
int end __attribute__((unused)))
{
int ret = OB_PARSER_SUCCESS;
#ifdef SQL_PARSER_COMPILATION