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

Lines changed: 4 additions & 2 deletions
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)
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