Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 87166d2

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 8f4b5b0 commit 87166d2

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
@@ -65,7 +65,7 @@ _bt_dedup_one_page(Relation rel, Buffer buf, Relation heapRel,
6565
OffsetNumber deletable[MaxIndexTuplesPerPage];
6666
BTDedupState state;
6767
int ndeletable = 0;
68-
Size pagesaving = 0;
68+
Size pagesaving PG_USED_FOR_ASSERTS_ONLY = 0;
6969
bool singlevalstrat = false;
7070
int nkeyatts = IndexRelationGetNumberOfKeyAttributes(rel);
7171

0 commit comments

Comments
 (0)