8000 Fix compilation errors via clang-15. by sokolcati · Pull Request #48 · postgrespro/jsquery · GitHub
[go: up one dir, main page]

Skip to content

Fix compilation errors via clang-15. #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 18, 2023
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
0