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

-2
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

-1
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

+1-1
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)