From: Robert Haas Date: Fri, 12 Mar 2021 20:04:10 +0000 (-0500) Subject: Move PG_USED_FOR_ASSERTS_ONLY before initializer. X-Git-Tag: REL_14_BETA1~580 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ac445955852fe6bc0e02e87a409f25ab6e0a82d6;p=thirdparty%2Fpostgresql.git Move PG_USED_FOR_ASSERTS_ONLY before initializer. Erik Rijkers reported a compile failure, and I think this is probably the reason. --- diff --git a/src/bin/pg_amcheck/pg_amcheck.c b/src/bin/pg_amcheck/pg_amcheck.c index bbad22e7a15..008a75d207e 100644 --- a/src/bin/pg_amcheck/pg_amcheck.c +++ b/src/bin/pg_amcheck/pg_amcheck.c @@ -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;