Skip to content

Commit a65747b

Browse files
committed
Suppress "variable 'pagesaving' set but not used" warning.
With asserts disabled, late-model clang notices that this variable is incremented but never otherwise read. Discussion: https://postgr.es/m/3171401.1649275153@sss.pgh.pa.us
1 parent 9a72299 commit a65747b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/access/nbtree/nbtdedup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ _bt_dedup_pass(Relation rel, Buffer buf, Relation heapRel, IndexTuple newitem,
6464
BTPageOpaque opaque = (BTPageOpaque) PageGetSpecialPointer(page);
6565
Page newpage;
6666
BTDedupState state;
67-
Size pagesaving = 0;
67+
Size pagesaving PG_USED_FOR_ASSERTS_ONLY = 0;
6868
bool singlevalstrat = false;
6969
int nkeyatts = IndexRelationGetNumberOfKeyAttributes(rel);
7070

0 commit comments

Comments
 (0)