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
This commit is contained in:
parent
0a93f803f4
commit
bad0763a4d
@ -265,7 +265,7 @@ BlockRefTableSetLimitBlock(BlockRefTable *brtab,
|
|||||||
BlockNumber limit_block)
|
BlockNumber limit_block)
|
||||||
{
|
{
|
||||||
BlockRefTableEntry *brtentry;
|
BlockRefTableEntry *brtentry;
|
||||||
BlockRefTableKey key = {0}; /* make sure any padding is zero */
|
BlockRefTableKey key = {{0}}; /* make sure any padding is zero */
|
||||||
bool found;
|
bool found;
|
||||||
|
|
||||||
memcpy(&key.rlocator, rlocator, sizeof(RelFileLocator));
|
memcpy(&key.rlocator, rlocator, sizeof(RelFileLocator));
|
||||||
@ -300,7 +300,7 @@ BlockRefTableMarkBlockModified(BlockRefTable *brtab,
|
|||||||
BlockNumber blknum)
|
BlockNumber blknum)
|
||||||
{
|
{
|
||||||
BlockRefTableEntry *brtentry;
|
BlockRefTableEntry *brtentry;
|
||||||
BlockRefTableKey key = {0}; /* make sure any padding is zero */
|
BlockRefTableKey key = {{0}}; /* make sure any padding is zero */
|
||||||
bool found;
|
bool found;
|
||||||
#ifndef FRONTEND
|
#ifndef FRONTEND
|
||||||
MemoryContext oldcontext = MemoryContextSwitchTo(brtab->mcxt);
|
MemoryContext oldcontext = MemoryContextSwitchTo(brtab->mcxt);
|
||||||
@ -340,7 +340,7 @@ BlockRefTableEntry *
|
|||||||
BlockRefTableGetEntry(BlockRefTable *brtab, const RelFileLocator *rlocator,
|
BlockRefTableGetEntry(BlockRefTable *brtab, const RelFileLocator *rlocator,
|
||||||
ForkNumber forknum, BlockNumber *limit_block)
|
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;
|
BlockRefTableEntry *entry;
|
||||||
|
|
||||||
Assert(limit_block != NULL);
|
Assert(limit_block != NULL);
|
||||||
@ -517,7 +517,7 @@ WriteBlockRefTable(BlockRefTable *brtab,
|
|||||||
for (i = 0; i < brtab->hash->members; ++i)
|
for (i = 0; i < brtab->hash->members; ++i)
|
||||||
{
|
{
|
||||||
BlockRefTableSerializedEntry *sentry = &sdata[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;
|
unsigned j;
|
||||||
|
|
||||||
/* Write the serialized entry itself. */
|
/* Write the serialized entry itself. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user