projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11a078c
)
Mark two variables in in aset.c with PG_USED_FOR_ASSERTS_ONLY
author
Tomas Vondra
Tue, 1 Oct 2019 12:39:06 +0000
(14:39 +0200)
committer
Tomas Vondra
Tue, 1 Oct 2019 12:39:06 +0000
(14:39 +0200)
This fixes two compiler warnings about unused variables in non-assert builds,
introduced by
5dd7fc1519461548eebf26c33eac6878ea3e8788
.
src/backend/utils/mmgr/aset.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/mmgr/aset.c
b/src/backend/utils/mmgr/aset.c
index 90f370570fe37176d3a87100b5734f0e7176e5c3..3bbcb1c8946d8695fff32da5e04586bc817e0f2e 100644
(file)
--- a/
src/backend/utils/mmgr/aset.c
+++ b/
src/backend/utils/mmgr/aset.c
@@
-571,7
+571,8
@@
AllocSetReset(MemoryContext context)
{
AllocSet set = (AllocSet) context;
AllocBlock block;
- Size keepersize = set->keeper->endptr - ((char *) set);
+ Size keepersize PG_USED_FOR_ASSERTS_ONLY
+ = set->keeper->endptr - ((char *) set);
AssertArg(AllocSetIsValid(set));
@@
-638,7
+639,8
@@
AllocSetDelete(MemoryContext context)
{
AllocSet set = (AllocSet) context;
AllocBlock block = set->blocks;
- Size keepersize = set->keeper->endptr - ((char *) set);
+ Size keepersize PG_USED_FOR_ASSERTS_ONLY
+ = set->keeper->endptr - ((char *) set);
AssertArg(AllocSetIsValid(set));