mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +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:
@ -1149,7 +1149,6 @@ CreateTriggerFiringOn(CreateTrigStmt *stmt, const char *queryString,
|
||||
PartitionDesc partdesc = RelationGetPartitionDesc(rel, true);
|
||||
List *idxs = NIL;
|
||||
List *childTbls = NIL;
|
||||
ListCell *l;
|
||||
int i;
|
||||
MemoryContext oldcxt,
|
||||
perChildCxt;
|
||||
@ -1181,6 +1180,7 @@ CreateTriggerFiringOn(CreateTrigStmt *stmt, const char *queryString,
|
||||
for (i = 0; i < partdesc->nparts; i++)
|
||||
{
|
||||
Oid indexOnChild = InvalidOid;
|
||||
ListCell *l;
|
||||
ListCell *l2;
|
||||
CreateTrigStmt *childStmt;
|
||||
Relation childTbl;
|
||||
|
Reference in New Issue
Block a user