use PG_USED_FOR_ASSERTS_ONLY

pull/3644/head
Onur Tirtir 2020-03-23 11:10:27 +03:00
parent 81d48d3466
commit 8ebb8ef31d
1 changed files with 1 additions and 5 deletions

View File

@ -368,11 +368,7 @@ ResetVisitedFields(HTAB *adjacencyList)
static bool static bool
AssociateDistributedTransactionWithBackendProc(TransactionNode *transactionNode) AssociateDistributedTransactionWithBackendProc(TransactionNode *transactionNode)
{ {
#ifdef USE_ASSERT_CHECKING int32 localGroupId PG_USED_FOR_ASSERTS_ONLY = GetLocalGroupId();
/* if assertions are disabled, it would give unused variable warning */
int32 localGroupId = GetLocalGroupId();
#endif
for (int backendIndex = 0; backendIndex < MaxBackends; ++backendIndex) for (int backendIndex = 0; backendIndex < MaxBackends; ++backendIndex)
{ {