Commit fa2fe04b authored by Tomas Vondra's avatar Tomas Vondra

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 5dd7fc15.
parent 11a078cf
...@@ -571,7 +571,8 @@ AllocSetReset(MemoryContext context) ...@@ -571,7 +571,8 @@ AllocSetReset(MemoryContext context)
{ {
AllocSet set = (AllocSet) context; AllocSet set = (AllocSet) context;
AllocBlock block; AllocBlock block;
Size keepersize = set->keeper->endptr - ((char *) set); Size keepersize PG_USED_FOR_ASSERTS_ONLY
= set->keeper->endptr - ((char *) set);
AssertArg(AllocSetIsValid(set)); AssertArg(AllocSetIsValid(set));
...@@ -638,7 +639,8 @@ AllocSetDelete(MemoryContext context) ...@@ -638,7 +639,8 @@ AllocSetDelete(MemoryContext context)
{ {
AllocSet set = (AllocSet) context; AllocSet set = (AllocSet) context;
AllocBlock block = set->blocks; 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)); AssertArg(AllocSetIsValid(set));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment