diff options
author | David Rowley <drowley@postgresql.org> | 2022-08-24 22:04:28 +1200 |
---|---|---|
committer | David Rowley <drowley@postgresql.org> | 2022-08-24 22:04:28 +1200 |
commit | f959bf9a5b9cecd2f6e6bdd24a34a7b269b00827 (patch) | |
tree | 55fedf0a343e02c1d1f2322a17be8399947f24be /src/backend/executor/nodeHash.c | |
parent | 161355ee6d2c64c0c4853a0646795028d666f052 (diff) | |
download | postgresql-f959bf9a5b9cecd2f6e6bdd24a34a7b269b00827.tar.gz postgresql-f959bf9a5b9cecd2f6e6bdd24a34a7b269b00827.zip |
Further -Wshadow=compatible-local warning fixes
These should have been included in 421892a19 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 as f01592f91.
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
Diffstat (limited to 'src/backend/executor/nodeHash.c')
-rw-r--r-- | src/backend/executor/nodeHash.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/executor/nodeHash.c b/src/backend/executor/nodeHash.c index c48d92259f9..841896c7781 100644 --- a/src/backend/executor/nodeHash.c +++ b/src/backend/executor/nodeHash.c @@ -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; |