aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeWorktablescan.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2012-03-21 23:30:14 +0200
committerPeter Eisentraut <peter_e@gmx.net>2012-03-21 23:33:10 +0200
commit0e85abd658738db9ea183c133c89c3c94ee37dae (patch)
tree54ef3bd66cfb7ccee3bc3f1989a21706703a48da /src/backend/executor/nodeWorktablescan.c
parent621eb156f159d4979193939902f49ea597972a7d (diff)
downloadpostgresql-0e85abd658738db9ea183c133c89c3c94ee37dae.tar.gz
postgresql-0e85abd658738db9ea183c133c89c3c94ee37dae.zip
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.
Diffstat (limited to 'src/backend/executor/nodeWorktablescan.c')
-rw-r--r--src/backend/executor/nodeWorktablescan.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/backend/executor/nodeWorktablescan.c b/src/backend/executor/nodeWorktablescan.c
index e2f3dd4d2e2..9ada6809f93 100644
--- a/src/backend/executor/nodeWorktablescan.c
+++ b/src/backend/executor/nodeWorktablescan.c
@@ -30,7 +30,6 @@ static TupleTableSlot *
WorkTableScanNext(WorkTableScanState *node)
{
TupleTableSlot *slot;
- EState *estate;
Tuplestorestate *tuplestorestate;
/*
@@ -48,8 +47,7 @@ WorkTableScanNext(WorkTableScanState *node)
* worktable. Therefore, we don't need a private read pointer for the
* tuplestore, nor do we need to tell tuplestore_gettupleslot to copy.
*/
- estate = node->ss.ps.state;
- Assert(ScanDirectionIsForward(estate->es_direction));
+ Assert(ScanDirectionIsForward(node->ss.ps.state->es_direction));
tuplestorestate = node->rustate->working_table;