mirror of
https://github.com/postgres/postgres.git
synced 2026-04-15 22:10:45 -04:00
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 5dd7fc1519.
This commit is contained in:
parent
11a078cf87
commit
fa2fe04bf1
1 changed files with 4 additions and 2 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue