]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Avoid C99-ism in pre-v12 branches.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 21 Jul 2020 17:13:15 +0000 (13:13 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 21 Jul 2020 17:13:15 +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 674e6a8321ff8e68b52c3742f665c403263bea82..2f0b02507959b39b245f2a9492727efb7aa71aaf 100644 (file)
@@ -187,8 +187,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);