projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdbd3d9
)
Suppress "variable 'pagesaving' set but not used" warning.
author
Tom Lane
<tgl@sss.pgh.pa.us>
Wed, 6 Apr 2022 21:03:35 +0000
(17:03 -0400)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Wed, 6 Apr 2022 21:03:50 +0000
(17:03 -0400)
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
src/backend/access/nbtree/nbtdedup.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/access/nbtree/nbtdedup.c
b/src/backend/access/nbtree/nbtdedup.c
index 3e11805293a99fe77acc4a6d2a0d05879f072e93..0207421a5d977204f11a58c630859b1247a2e042 100644
(file)
--- a/
src/backend/access/nbtree/nbtdedup.c
+++ b/
src/backend/access/nbtree/nbtdedup.c
@@
-65,7
+65,7
@@
_bt_dedup_pass(Relation rel, Buffer buf, Relation heapRel, IndexTuple newitem,
BTPageOpaque opaque = BTPageGetOpaque(page);
Page newpage;
BTDedupState state;
- Size pagesaving = 0;
+ Size pagesaving
PG_USED_FOR_ASSERTS_ONLY
= 0;
bool singlevalstrat = false;
int nkeyatts = IndexRelationGetNumberOfKeyAttributes(rel);