Avoid C99-ism in pre-v12 branches.
authorTom Lane <[email protected]>
Tue, 21 Jul 2020 17:13:15 +0000 (13:13 -0400)
committerTom Lane <[email protected]>
Tue, 21 Jul 2020 17:13:27 +0000 (13:13 -0400)
Per buildfarm (I need to figure out why my own compiler did not
whine about this).

src/backend/catalog/indexing.c

index 04aade41fd3b3595cb559265d7972f034993fbec..b872ea4c41df7a8bf2ab125bfa62b42957c0d31a 100644 (file)
@@ -186,8 +186,9 @@ CatalogTupleCheckConstraints(Relation heapRel, HeapTuple tup)
    {
        TupleDesc   tupdesc = RelationGetDescr(heapRel);
        bits8      *bp = tup->t_data->t_bits;
+       int         attnum;
 
-       for (int attnum = 0; attnum < tupdesc->natts; attnum++)
+       for (attnum = 0; attnum < tupdesc->natts; attnum++)
        {
            Form_pg_attribute thisatt = TupleDescAttr(tupdesc, attnum);