Skip to content

Commit dbafe12

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 bdbd3d9 commit dbafe12

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_pass(Relation rel, Buffer buf, Relation heapRel, IndexTuple newitem,
6565
BTPageOpaque opaque = BTPageGetOpaque(page);
6666
Page newpage;
6767
BTDedupState state;
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)
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