summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2001-01-19 06:50:23 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2001-01-19 06:50:23 +0000
commitc78e19544e18d245f8295b7718c620f0375ae203 (patch)
tree7f450b269fa92512d6a9ccd893ab0984490df8ea
parent2cd23b6555858a70a313c5b6e7c18696ab710171 (diff)
Suppress unused-variable warning in non-Assert compilations.
-rw-r--r--src/backend/parser/analyze.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/parser/analyze.c b/src/backend/parser/analyze.c
index 52327f45da3..c1f9d7be1d0 100644
--- a/src/backend/parser/analyze.c
+++ b/src/backend/parser/analyze.c
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: analyze.c,v 1.175 2001/01/08 20:54:24 momjian Exp $
+ * $Id: analyze.c,v 1.176 2001/01/19 06:50:23 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -423,10 +423,9 @@ transformInsertStmt(ParseState *pstate, InsertStmt *stmt)
foreach(tl, qry->targetList)
{
TargetEntry *tle = (TargetEntry *) lfirst(tl);
- Resdom *resnode = tle->resdom;
Ident *id;
- Assert(!resnode->resjunk);
+ Assert(!tle->resdom->resjunk);
if (icolumns == NIL || attnos == NIL)
elog(ERROR, "INSERT has more expressions than target columns");
id = (Ident *) lfirst(icolumns);