diff options
author | David Rowley <drowley@postgresql.org> | 2022-08-26 02:35:40 +1200 |
---|---|---|
committer | David Rowley <drowley@postgresql.org> | 2022-08-26 02:35:40 +1200 |
commit | 3e0fff2e6888e39b0ad5cdfdb78bc1c2bb2b22c9 (patch) | |
tree | 235e23ee1c87eb2f148216535c0d300bcbe0a64e /src/backend/optimizer/plan/subselect.c | |
parent | e3ce2de09d814f8770b2e3b3c152b7671bcdb83f (diff) |
More -Wshadow=compatible-local warning fixes
In a similar effort to f01592f91, here we're targetting fixing the
warnings where we've deemed the shadowing variable to serve a close enough
purpose to the shadowed variable just to reuse the shadowed version and
not declare the shadowing variable at all.
By my count, this takes the warning count from 106 down to 71.
Author: Justin Pryzby
Discussion: https://postgr.es/m/20220825020839.GT2342@telsasoft.com
Diffstat (limited to 'src/backend/optimizer/plan/subselect.c')
-rw-r--r-- | src/backend/optimizer/plan/subselect.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/backend/optimizer/plan/subselect.c b/src/backend/optimizer/plan/subselect.c index df4ca129191..92e33385842 100644 --- a/src/backend/optimizer/plan/subselect.c +++ b/src/backend/optimizer/plan/subselect.c @@ -2554,8 +2554,6 @@ finalize_plan(PlannerInfo *root, Plan *plan, case T_Append: { - ListCell *l; - foreach(l, ((Append *) plan)->appendplans) { context.paramids = @@ -2571,8 +2569,6 @@ finalize_plan(PlannerInfo *root, Plan *plan, case T_MergeAppend: { - ListCell *l; - foreach(l, ((MergeAppend *) plan)->mergeplans) { context.paramids = @@ -2588,8 +2584,6 @@ finalize_plan(PlannerInfo *root, Plan *plan, case T_BitmapAnd: { - ListCell *l; - foreach(l, ((BitmapAnd *) plan)->bitmapplans) { context.paramids = @@ -2605,8 +2599,6 @@ finalize_plan(PlannerInfo *root, Plan *plan, case T_BitmapOr: { - ListCell *l; - foreach(l, ((BitmapOr *) plan)->bitmapplans) { context.paramids = @@ -2622,8 +2614,6 @@ finalize_plan(PlannerInfo *root, Plan *plan, case T_NestLoop: { - ListCell *l; - finalize_primnode((Node *) ((Join *) plan)->joinqual, &context); /* collect set of params that will be passed to right child */ |