Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0138dc7

Browse files
author
Marina Polyakova
committed
Fix compiler warnings due to new checks in PostgreSQL 16
See the commit 0fe954c28584169938e5c0738cfaa9930ce77577 (Add -Wshadow=compatible-local to the standard compilation flags) in PostgreSQL 16. pg_wait_sampling.c: In function ‘pg_wait_sampling_get_current’: pg_wait_sampling.c:454:42: warning: declaration of ‘params’ shadows a previous local [-Wshadow=compatible-local] 454 | WaitCurrentContext *params; | ^~~~~~ pg_wait_sampling.c:446:34: note: shadowed declaration is here 446 | WaitCurrentContext *params; | ^~~~~~
1 parent fb3eb36 commit 0138dc7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

pg_wait_sampling.c

-1
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,6 @@ pg_wait_sampling_get_current(PG_FUNCTION_ARGS)
451451
{
452452
MemoryContext oldcontext;
453453
TupleDesc tupdesc;
454-
WaitCurrentContext *params;
455454

456455
funcctx = SRF_FIRSTCALL_INIT();
457456

0 commit comments

Comments
 (0)