Content-Length: 285180 | pFad | http://github.com/postgrespro/postgres/commit/4b40d40b30ae04ba524cd410f14e64ae4425a180

B9 Fix unused variable compiler warning in !debug builds. · postgrespro/postgres@4b40d40 · GitHub
Skip to content

Commit 4b40d40

Browse files
committed
Fix unused variable compiler warning in !debug builds.
Introduced in 3dbb317. Fix by using the new local variable in more places. Reported-By: Bruce Momjian (off-list) Backpatch: 9.4-, like 3dbb317
1 parent b06a354 commit 4b40d40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/catalog/indexing.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ CatalogIndexInsert(CatalogIndexState indstate, HeapTuple heapTuple)
139139
Assert(!ReindexIsProcessingIndex(RelationGetRelid(index)));
140140
continue;
141141
}
142-
#endif /* USE_ASSERT_CHECKING */
142+
#endif /* USE_ASSERT_CHECKING */
143143

144144
/*
145145
* FormIndexDatum fills in its values and isnull parameters with the
@@ -154,12 +154,12 @@ CatalogIndexInsert(CatalogIndexState indstate, HeapTuple heapTuple)
154154
/*
155155
* The index AM does the rest.
156156
*/
157-
index_insert(relationDescs[i], /* index relation */
157+
index_insert(index, /* index relation */
158158
values, /* array of index Datums */
159159
isnull, /* is-null flags */
160160
&(heapTuple->t_self), /* tid of heap tuple */
161161
heapRelation,
162-
relationDescs[i]->rd_index->indisunique ?
162+
index->rd_index->indisunique ?
163163
UNIQUE_CHECK_YES : UNIQUE_CHECK_NO,
164164
indexInfo);
165165
}

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/4b40d40b30ae04ba524cd410f14e64ae4425a180

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy