Skip to content

Commit e76dfbf

Browse files
author
Ekaterina Sokolova
committed
[PGPRO-8962] Fix compilation errors via clang-15.
1) remove unused variable 2) suppress error about unused yynerr (bison variable) Tags: jsquery.
1 parent 6eb2396 commit e76dfbf

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

jsonb_gin_ops.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ get_bloom_value(uint32 hash)
173173
static uint32
174174
get_path_bloom(PathHashStack *stack)
175175
{
176-
int i = 0;
177176
uint32 res = 0, val;
178177

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

185184
res |= val;
186-
i++;
187185
stack = stack->parent;
188186
}
189187
return res;

jsquery_gram.y

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,10 @@ makeItemList(List *list) {
254254
%%
255255

256256
result:
257-
expr { *result = $1; }
257+
expr {
258+
*result = $1;
259+
(void) yynerrs; /* suppress compiler warning */
260+
}
258261
| /* EMPTY */ { *result = NULL; }
259262
;
260263

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy