mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Clean up compiler warnings from unused variables with asserts disabled
For those variables only used when asserts are enabled, use a new macro PG_USED_FOR_ASSERTS_ONLY, which expands to __attribute__((unused)) when asserts are not enabled.
This commit is contained in:
@ -344,7 +344,7 @@ setop_fill_hash_table(SetOpState *setopstate)
|
||||
SetOp *node = (SetOp *) setopstate->ps.plan;
|
||||
PlanState *outerPlan;
|
||||
int firstFlag;
|
||||
bool in_first_rel;
|
||||
bool in_first_rel PG_USED_FOR_ASSERTS_ONLY;
|
||||
|
||||
/*
|
||||
* get state info from node
|
||||
|
Reference in New Issue
Block a user