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
|
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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue