Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit fa2fe04

Browse files
committed
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 5dd7fc1.
1 parent 11a078c commit fa2fe04

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/backend/utils/mmgr/aset.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,8 @@ AllocSetReset(MemoryContext context)
571571
{
572572
AllocSet set = (AllocSet) context;
573573
AllocBlock block;
574-
Size keepersize = set->keeper->endptr - ((char *) set);
574+
Size keepersize PG_USED_FOR_ASSERTS_ONLY
575+
= set->keeper->endptr - ((char *) set);
575576

576577
AssertArg(AllocSetIsValid(set));
577578

@@ -638,7 +639,8 @@ AllocSetDelete(MemoryContext context)
638639
{
639640
AllocSet set = (AllocSet) context;
640641
AllocBlock block = set->blocks;
641-
Size keepersize = set->keeper->endptr - ((char *) set);
642+
Size keepersize PG_USED_FOR_ASSERTS_ONLY
643+
= set->keeper->endptr - ((char *) set);
642644

643645
AssertArg(AllocSetIsValid(set));
644646

0 commit comments

Comments
 (0)