diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2023-12-24 23:36:33 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2023-12-24 23:36:33 -0500 |
commit | bad0763a4d7be3005eae35d460c73ac4bc7ebaad (patch) | |
tree | 5630018a447c46f96015c03de72811b9168b7f36 /src | |
parent | 0a93f803f45f45f39473e2c61923c4b4777bc8a8 (diff) | |
download | postgresql-bad0763a4d7be3005eae35d460c73ac4bc7ebaad.tar.gz postgresql-bad0763a4d7be3005eae35d460c73ac4bc7ebaad.zip |
Fix erroneous -Werror=missing-braces on old GCC.
In the same spirit as 5e0c761d0 and some earlier commits,
suppress a chorus of buildfarm warnings about braces in
these initializers.
Richard Guo
Discussion: https://postgr.es/m/CAMbWs48GzM-Ff7vr=_CeqaXxFBB9UntqtaW1cjU8hOo62AbOOg@mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r-- | src/common/blkreftable.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/blkreftable.c b/src/common/blkreftable.c index d0ecaa05ef2..7516c6b99f8 100644 --- a/src/common/blkreftable.c +++ b/src/common/blkreftable.c @@ -265,7 +265,7 @@ BlockRefTableSetLimitBlock(BlockRefTable *brtab, BlockNumber limit_block) { BlockRefTableEntry *brtentry; - BlockRefTableKey key = {0}; /* make sure any padding is zero */ + BlockRefTableKey key = {{0}}; /* make sure any padding is zero */ bool found; memcpy(&key.rlocator, rlocator, sizeof(RelFileLocator)); @@ -300,7 +300,7 @@ BlockRefTableMarkBlockModified(BlockRefTable *brtab, BlockNumber blknum) { BlockRefTableEntry *brtentry; - BlockRefTableKey key = {0}; /* make sure any padding is zero */ + BlockRefTableKey key = {{0}}; /* make sure any padding is zero */ bool found; #ifndef FRONTEND MemoryContext oldcontext = MemoryContextSwitchTo(brtab->mcxt); @@ -340,7 +340,7 @@ BlockRefTableEntry * BlockRefTableGetEntry(BlockRefTable *brtab, const RelFileLocator *rlocator, ForkNumber forknum, BlockNumber *limit_block) { - BlockRefTableKey key = {0}; /* make sure any padding is zero */ + BlockRefTableKey key = {{0}}; /* make sure any padding is zero */ BlockRefTableEntry *entry; Assert(limit_block != NULL); @@ -517,7 +517,7 @@ WriteBlockRefTable(BlockRefTable *brtab, for (i = 0; i < brtab->hash->members; ++i) { BlockRefTableSerializedEntry *sentry = &sdata[i]; - BlockRefTableKey key = {0}; /* make sure any padding is zero */ + BlockRefTableKey key = {{0}}; /* make sure any padding is zero */ unsigned j; /* Write the serialized entry itself. */ |