mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +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:
@@ -3583,7 +3583,7 @@ void
|
||||
set_subquery_size_estimates(PlannerInfo *root, RelOptInfo *rel)
|
||||
{
|
||||
PlannerInfo *subroot = rel->subroot;
|
||||
RangeTblEntry *rte;
|
||||
RangeTblEntry *rte PG_USED_FOR_ASSERTS_ONLY;
|
||||
ListCell *lc;
|
||||
|
||||
/* Should only be applied to base relations that are subqueries */
|
||||
|
Reference in New Issue
Block a user