Remove some more useless assignments.
Tom Lane <tgl@sss.pgh.pa.us>
Remove some more useless assignments. Found with clang's scan-build tool. It also whines about a lot of other dead stores that we should *not* change IMO, either as a matter of style or future-proofing. But these places seem like clear oversights. Discussion: https://postgr.es/m/CAEudQAo1+AcGppxDSg8k+zF4+Kv+eJyqzEDdbpDg58-=MQcerQ@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/brin/brin_tuple.c | modified | +0 −1 |
| src/backend/access/gin/ginbtree.c | modified | +0 −1 |
| src/backend/catalog/pg_depend.c | modified | +3 −3 |
| src/backend/optimizer/plan/planner.c | modified | +1 −1 |
| src/backend/parser/parse_utilcmd.c | modified | +0 −1 |
| src/backend/partitioning/partbounds.c | modified | +0 −4 |
| src/backend/statistics/extended_stats.c | modified | +1 −1 |
| src/backend/tsearch/spell.c | modified | +2 −2 |
Discussion
- [PATCH] Redudant initilization 13 messages · 2020-03-28 → 2020-09-05