Further -Wshadow=compatible-local warning fixes
David Rowley <drowley@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/spgist/spgdoinsert.c | modified | +2 −1 |
| src/backend/commands/trigger.c | modified | +1 −1 |
| src/backend/executor/nodeHash.c | modified | +1 −2 |
| src/backend/optimizer/plan/planner.c | modified | +1 −1 |
| src/backend/tsearch/ts_typanalyze.c | modified | +2 −1 |
| src/backend/utils/adt/levenshtein.c | modified | +3 −3 |
| src/backend/utils/adt/rangetypes_gist.c | modified | +3 −2 |
| src/backend/utils/adt/ruleutils.c | modified | +2 −1 |
Discussion
- shadow variables - pg15 edition 56 messages · 2022-08-17 → 2022-10-12