]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Further -Wshadow=compatible-local warning fixes
authorDavid Rowley <drowley@postgresql.org>
Wed, 24 Aug 2022 10:04:28 +0000 (22:04 +1200)
committerDavid Rowley <drowley@postgresql.org>
Wed, 24 Aug 2022 10:04:28 +0000 (22:04 +1200)
commitf959bf9a5b9cecd2f6e6bdd24a34a7b269b00827
tree55fedf0a343e02c1d1f2322a17be8399947f24be
parent161355ee6d2c64c0c4853a0646795028d666f052
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
src/backend/access/spgist/spgdoinsert.c
src/backend/commands/trigger.c
src/backend/executor/nodeHash.c
src/backend/optimizer/plan/planner.c
src/backend/tsearch/ts_typanalyze.c
src/backend/utils/adt/levenshtein.c
src/backend/utils/adt/rangetypes_gist.c
src/backend/utils/adt/ruleutils.c