mirror of
https://github.com/postgres/postgres.git
synced 2025-07-21 16:02:15 +03:00
Further -Wshadow=compatible-local warning fixes
These should have been included in421892a19
as these shadowed variable warnings can also be fixed by adjusting the scope of the shadowed variable to put the declaration for it in an inner scope. This is part of the same effort asf01592f91
. By my count, this takes the warning count from 114 down to 106. Author: David Rowley and Justin Pryzby Discussion: https://postgr.es/m/CAApHDvrwLGBP%2BYw9vriayyf%3DXR4uPWP5jr6cQhP9au_kaDUhbA%40mail.gmail.com
This commit is contained in:
@ -1080,7 +1080,6 @@ static void
|
||||
ExecParallelHashIncreaseNumBatches(HashJoinTable hashtable)
|
||||
{
|
||||
ParallelHashJoinState *pstate = hashtable->parallel_state;
|
||||
int i;
|
||||
|
||||
Assert(BarrierPhase(&pstate->build_barrier) == PHJ_BUILD_HASHING_INNER);
|
||||
|
||||
@ -1244,7 +1243,7 @@ ExecParallelHashIncreaseNumBatches(HashJoinTable hashtable)
|
||||
ExecParallelHashTableSetCurrentBatch(hashtable, 0);
|
||||
|
||||
/* Are any of the new generation of batches exhausted? */
|
||||
for (i = 0; i < hashtable->nbatch; ++i)
|
||||
for (int i = 0; i < hashtable->nbatch; ++i)
|
||||
{
|
||||
ParallelHashJoinBatch *batch = hashtable->batches[i].shared;
|
||||
|
||||
|
Reference in New Issue
Block a user