Skip to content

Commit 060ebdc

Browse files
author
Artur Zakirov
committed
Fix clang warnings
1 parent 6291a92 commit 060ebdc

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

rumdatapage.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,13 +1110,11 @@ dataSplitPageLeaf(RumBtree btree, Buffer lbuf, Buffer rbuf,
11101110
}
11111111
else
11121112
{
1113-
prevTotalsize = totalsize;
11141113
totalsize = rumCheckPlaceToDataPageLeaf(btree->entryAttnum,
11151114
&item, &prevIptr, btree->rumstate, totalsize);
11161115
maxItemIndex++;
11171116

11181117
totalCount++;
1119-
maxItemSize = Max(maxItemSize, totalsize - prevTotalsize);
11201118
}
11211119
}
11221120

rumentrypage.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,6 @@ entrySplitPage(RumBtree btree, Buffer lbuf, Buffer rbuf,
445445
{
446446
size = MAXALIGN(IndexTupleSize(btree->entry));
447447
memcpy(ptr, btree->entry, size);
448-
ptr += size;
449448
totalsize += size + sizeof(ItemIdData);
450449
}
451450

rumtsquery.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ extract_wraps(QueryItemWrap * wrap, ExtractContext * context, int level)
269269
{
270270
bytea *addinfo;
271271
unsigned char *ptr;
272-
int index = context->index;
272+
int index;
273273

274274

275275
for (index = 0; index < context->index; index++)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy