Skip to content

Commit 22b96f8

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 f451029 commit 22b96f8

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
@@ -187,8 +187,9 @@ CatalogTupleCheckConstraints(Relation heapRel, HeapTuple tup)
187187
{
188188
TupleDesc tupdesc = RelationGetDescr(heapRel);
189189
bits8 *bp = tup->t_data->t_bits;
190+
int attnum;
190191

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

0 commit comments

Comments
 (0)