@@ -265,7 +265,7 @@ BlockRefTableSetLimitBlock(BlockRefTable *brtab,
265
265
BlockNumber limit_block )
266
266
{
267
267
BlockRefTableEntry * brtentry ;
268
- BlockRefTableKey key = {{ 0 }}; /* make sure any padding is zero */
268
+ BlockRefTableKey key = {0 }; /* make sure any padding is zero */
269
269
bool found ;
270
270
271
271
memcpy (& key .rlocator , rlocator , sizeof (RelFileLocator ));
@@ -300,7 +300,7 @@ BlockRefTableMarkBlockModified(BlockRefTable *brtab,
300
300
BlockNumber blknum )
301
301
{
302
302
BlockRefTableEntry * brtentry ;
303
- BlockRefTableKey key = {{ 0 }}; /* make sure any padding is zero */
303
+ BlockRefTableKey key = {0 }; /* make sure any padding is zero */
304
304
bool found ;
305
305
#ifndef FRONTEND
306
306
MemoryContext oldcontext = MemoryContextSwitchTo (brtab -> mcxt );
@@ -340,7 +340,7 @@ BlockRefTableEntry *
340
340
BlockRefTableGetEntry (BlockRefTable * brtab , const RelFileLocator * rlocator ,
341
341
ForkNumber forknum , BlockNumber * limit_block )
342
342
{
343
- BlockRefTableKey key = {{ 0 }}; /* make sure any padding is zero */
343
+ BlockRefTableKey key = {0 }; /* make sure any padding is zero */
344
344
BlockRefTableEntry * entry ;
345
345
346
346
Assert (limit_block != NULL );
@@ -521,7 +521,7 @@ WriteBlockRefTable(BlockRefTable *brtab,
521
521
for (i = 0 ; i < brtab -> hash -> members ; ++ i )
522
522
{
523
523
BlockRefTableSerializedEntry * sentry = & sdata [i ];
524
- BlockRefTableKey key = {{ 0 }}; /* make sure any padding is zero */
524
+ BlockRefTableKey key = {0 }; /* make sure any padding is zero */
525
525
unsigned j ;
526
526
527
527
/* Write the serialized entry itself. */
@@ -616,7 +616,7 @@ BlockRefTableReaderNextRelation(BlockRefTableReader *reader,
616
616
BlockNumber * limit_block )
617
617
{
618
618
BlockRefTableSerializedEntry sentry ;
619
- BlockRefTableSerializedEntry zentry = {{ 0 } };
619
+ BlockRefTableSerializedEntry zentry = {0 };
620
620
621
621
/*
622
622
* Sanity check: caller must read all blocks from all chunks before moving
@@ -1291,7 +1291,7 @@ BlockRefTableWrite(BlockRefTableBuffer *buffer, void *data, int length)
1291
1291
static void
1292
1292
BlockRefTableFileTerminate (BlockRefTableBuffer * buffer )
1293
1293
{
1294
- BlockRefTableSerializedEntry zentry = {{ 0 } };
1294
+ BlockRefTableSerializedEntry zentry = {0 };
1295
1295
pg_crc32c crc ;
1296
1296
1297
1297
/* Write a sentinel indicating that there are no more entries. */
0 commit comments