mirror of
https://github.com/postgres/postgres.git
synced 2025-08-21 10:42:50 +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:
@@ -1588,7 +1588,7 @@ transformSetOperationTree(ParseState *pstate, SelectStmt *stmt,
|
||||
/* Process leaf SELECT */
|
||||
Query *selectQuery;
|
||||
char selectName[32];
|
||||
RangeTblEntry *rte;
|
||||
RangeTblEntry *rte PG_USED_FOR_ASSERTS_ONLY;
|
||||
RangeTblRef *rtr;
|
||||
ListCell *tl;
|
||||
|
||||
|
Reference in New Issue
Block a user