Skip to content

Commit a00dbfa

Browse files
committed
Avoid C99-ism in pre-v12 branches.
Per buildfarm (I need to figure out why my own compiler did not whine about this).
1 parent fb71329 commit a00dbfa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/catalog/indexing.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,9 @@ CatalogTupleCheckConstraints(Relation heapRel, HeapTuple tup)
186186
{
187187
TupleDesc tupdesc = RelationGetDescr(heapRel);
188188
bits8 *bp = tup->t_data->t_bits;
189+
int attnum;
189190

190-
for (int attnum = 0; attnum < tupdesc->natts; attnum++)
191+
for (attnum = 0; attnum < tupdesc->natts; attnum++)
191192
{
192193
Form_pg_attribute thisatt = TupleDescAttr(tupdesc, attnum);
193194

0 commit comments

Comments
 (0)