diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2020-09-04 14:32:10 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2020-09-04 14:32:19 -0400 |
commit | 38a2d703298c9a891dc9c24c0c087f417f555c70 (patch) | |
tree | 5c8dfa0662efa40432bf05f7f2029c2ad198bac4 /src/backend/access | |
parent | 3eb3d3e7822d5eecfcaba871a90263c6025c5216 (diff) | |
download | postgresql-38a2d703298c9a891dc9c24c0c087f417f555c70.tar.gz postgresql-38a2d703298c9a891dc9c24c0c087f417f555c70.zip |
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
Diffstat (limited to 'src/backend/access')
-rw-r--r-- | src/backend/access/brin/brin_tuple.c | 1 | ||||
-rw-r--r-- | src/backend/access/gin/ginbtree.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/src/backend/access/brin/brin_tuple.c b/src/backend/access/brin/brin_tuple.c index 6cb7c26b39f..46e6b23c874 100644 --- a/src/backend/access/brin/brin_tuple.c +++ b/src/backend/access/brin/brin_tuple.c @@ -243,7 +243,6 @@ brin_form_tuple(BrinDesc *brdesc, BlockNumber blkno, BrinMemTuple *tuple, *bitP |= bitmask; } - bitP = ((bits8 *) (rettuple + SizeOfBrinTuple)) - 1; } if (tuple->bt_placeholder) diff --git a/src/backend/access/gin/ginbtree.c b/src/backend/access/gin/ginbtree.c index 8d08b05f515..82788a5c367 100644 --- a/src/backend/access/gin/ginbtree.c +++ b/src/backend/access/gin/ginbtree.c @@ -241,7 +241,6 @@ ginFindParents(GinBtree btree, GinBtreeStack *stack) blkno = root->blkno; buffer = root->buffer; - offset = InvalidOffsetNumber; ptr = (GinBtreeStack *) palloc(sizeof(GinBtreeStack)); |