mirror of
https://github.com/postgres/postgres.git
synced 2025-05-18 17:41:14 +03:00
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
This commit is contained in:
parent
8f4b5b0909
commit
87166d25a4
@ -65,7 +65,7 @@ _bt_dedup_one_page(Relation rel, Buffer buf, Relation heapRel,
|
|||||||
OffsetNumber deletable[MaxIndexTuplesPerPage];
|
OffsetNumber deletable[MaxIndexTuplesPerPage];
|
||||||
BTDedupState state;
|
BTDedupState state;
|
||||||
int ndeletable = 0;
|
int ndeletable = 0;
|
||||||
Size pagesaving = 0;
|
Size pagesaving PG_USED_FOR_ASSERTS_ONLY = 0;
|
||||||
bool singlevalstrat = false;
|
bool singlevalstrat = false;
|
||||||
int nkeyatts = IndexRelationGetNumberOfKeyAttributes(rel);
|
int nkeyatts = IndexRelationGetNumberOfKeyAttributes(rel);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user