Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[PGPRO-8962] Fix compilation errors via clang-15.
1) remove unused variable
2) suppress error about unused yynerr (bison variable)

Tags: jsquery.
  • Loading branch information
Ekaterina Sokolova committed Oct 11, 2023
commit e76dfbfaa40d8e87116588dfa4c53e7fc552e953
2 changes: 0 additions & 2 deletions jsonb_gin_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ get_bloom_value(uint32 hash)
static uint32
get_path_bloom(PathHashStack *stack)
{
int i = 0;
uint32 res = 0, val;

while (stack)
Expand All @@ -183,7 +182,6 @@ get_path_bloom(PathHashStack *stack)
val = get_bloom_value(hash);

res |= val;
i++;
stack = stack->parent;
}
return res;
Expand Down
5 changes: 4 additions & 1 deletion jsquery_gram.y
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,10 @@ makeItemList(List *list) {
%%

result:
expr { *result = $1; }
expr {
*result = $1;
(void) yynerrs; /* suppress compiler warning */
}
| /* EMPTY */ { *result = NULL; }
;

Expand Down