aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/execScan.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-08-08 14:39:45 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-08-08 14:39:45 +0000
commit870886affeb41422aaa888138539f6c80f2432c3 (patch)
treea3cafacbce92eab0b02987cc50852de61d352cc2 /src/backend/executor/execScan.c
parentf65643771ba04d11daec50d51be361a5185eca2e (diff)
downloadpostgresql-870886affeb41422aaa888138539f6c80f2432c3.tar.gz
postgresql-870886affeb41422aaa888138539f6c80f2432c3.zip
Suppress unused-variable warnings when building without Asserts.
Diffstat (limited to 'src/backend/executor/execScan.c')
-rw-r--r--src/backend/executor/execScan.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/executor/execScan.c b/src/backend/executor/execScan.c
index 94c9074f341..36593174d76 100644
--- a/src/backend/executor/execScan.c
+++ b/src/backend/executor/execScan.c
@@ -12,7 +12,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/execScan.c,v 1.25 2003/08/04 02:39:58 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/execScan.c,v 1.26 2003/08/08 14:39:45 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -196,7 +196,9 @@ tlist_matches_tupdesc(List *tlist, Index varno, TupleDesc tupdesc)
for (attrno = 1; attrno <= numattrs; attrno++)
{
+#ifdef USE_ASSERT_CHECKING /* only used in Assert() */
Form_pg_attribute att_tup = tupdesc->attrs[attrno - 1];
+#endif
Var *var;
if (tlist == NIL)