Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfa2fe04

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 by5dd7fc1.
1 parent11a078c commitfa2fe04

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
AllocSetset= (AllocSet)context;
573573
AllocBlockblock;
574-
Sizekeepersize=set->keeper->endptr- ((char*)set);
574+
SizekeepersizePG_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
AllocSetset= (AllocSet)context;
640641
AllocBlockblock=set->blocks;
641-
Sizekeepersize=set->keeper->endptr- ((char*)set);
642+
SizekeepersizePG_USED_FOR_ASSERTS_ONLY
643+
=set->keeper->endptr- ((char*)set);
642644

643645
AssertArg(AllocSetIsValid(set));
644646

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp