Move PG_USED_FOR_ASSERTS_ONLY before initializer.
authorRobert Haas <rhaas@postgresql.org>
Fri, 12 Mar 2021 20:04:10 +0000 (15:04 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 12 Mar 2021 20:04:10 +0000 (15:04 -0500)
Erik Rijkers reported a compile failure, and I think this is probably
the reason.

src/bin/pg_amcheck/pg_amcheck.c

index bbad22e7a1562cc077240549816a4ed33fcbc1e9..008a75d207e7638632603cf4fd65ae82d5209a27 100644 (file)
@@ -2058,7 +2058,7 @@ compile_relation_list_one_db(PGconn *conn, SimplePtrList *relations,
        {
                int                     pattern_id = -1;
                bool            is_heap = false;
-               bool            is_btree = false PG_USED_FOR_ASSERTS_ONLY;
+               bool            is_btree PG_USED_FOR_ASSERTS_ONLY = false;
                Oid                     oid = InvalidOid;
                const char *nspname = NULL;
                const char *relname = NULL;