summaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorTomas Vondra2019-10-01 12:39:06 +0000
committerTomas Vondra2019-10-01 12:39:06 +0000
commitfa2fe04bf1d4d31e099808745974964f84eb4521 (patch)
tree4f91a5a3655eccafe5aa84a03772b00d0179f31f /src/backend
parent11a078cf87ffb611d19c7dec6df68b41084ad9c9 (diff)
Mark two variables in in aset.c with PG_USED_FOR_ASSERTS_ONLY
This fixes two compiler warnings about unused variables in non-assert builds, introduced by 5dd7fc1519461548eebf26c33eac6878ea3e8788.
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/utils/mmgr/aset.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/backend/utils/mmgr/aset.c b/src/backend/utils/mmgr/aset.c
index 90f370570fe..3bbcb1c8946 100644
--- 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));