diff --git a/src/backend/utils/cache/syscache.c b/src/backend/utils/cache/syscache.c index f7f4f56a4d2..b4f2dbdee08 100644 --- a/src/backend/utils/cache/syscache.c +++ b/src/backend/utils/cache/syscache.c @@ -85,7 +85,7 @@ StaticAssertDecl(lengthof(cacheinfo) == SysCacheSize, static CatCache *SysCache[SysCacheSize]; -static bool CacheInitialized = false; +static bool CacheInitialized PG_USED_FOR_ASSERTS_ONLY = false; /* Sorted array of OIDs of tables that have caches on them */ static Oid SysCacheRelationOid[SysCacheSize]; diff --git a/src/test/modules/test_resowner/test_resowner_many.c b/src/test/modules/test_resowner/test_resowner_many.c index d96dc09831c..c85f0eb9ed0 100644 --- a/src/test/modules/test_resowner/test_resowner_many.c +++ b/src/test/modules/test_resowner/test_resowner_many.c @@ -47,7 +47,7 @@ typedef struct * Priority of last call to the release callback. * This is used to check that the resources are released in correct order. */ -static uint32 last_release_priority = 0; +static uint32 last_release_priority PG_USED_FOR_ASSERTS_ONLY = 0; /* prototypes for local functions */ static void ReleaseManyTestResource(Datum res);