mirror of https://github.com/citusdata/citus.git
use PG_USED_FOR_ASSERTS_ONLY
parent
81d48d3466
commit
8ebb8ef31d
|
@ -368,11 +368,7 @@ ResetVisitedFields(HTAB *adjacencyList)
|
|||
static bool
|
||||
AssociateDistributedTransactionWithBackendProc(TransactionNode *transactionNode)
|
||||
{
|
||||
#ifdef USE_ASSERT_CHECKING
|
||||
|
||||
/* if assertions are disabled, it would give unused variable warning */
|
||||
int32 localGroupId = GetLocalGroupId();
|
||||
#endif
|
||||
int32 localGroupId PG_USED_FOR_ASSERTS_ONLY = GetLocalGroupId();
|
||||
|
||||
for (int backendIndex = 0; backendIndex < MaxBackends; ++backendIndex)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue