@@ -265,7 +265,7 @@ BlockRefTableSetLimitBlock(BlockRefTable *brtab,
265265 BlockNumber limit_block )
266266{
267267 BlockRefTableEntry * brtentry ;
268- BlockRefTableKey key = {0 }; /* make sure any padding is zero */
268+ BlockRefTableKey key = {{ 0 }}; /* make sure any padding is zero */
269269 bool found ;
270270
271271 memcpy (& key .rlocator , rlocator , sizeof (RelFileLocator ));
@@ -300,7 +300,7 @@ BlockRefTableMarkBlockModified(BlockRefTable *brtab,
300300 BlockNumber blknum )
301301{
302302 BlockRefTableEntry * brtentry ;
303- BlockRefTableKey key = {0 }; /* make sure any padding is zero */
303+ BlockRefTableKey key = {{ 0 }}; /* make sure any padding is zero */
304304 bool found ;
305305#ifndef FRONTEND
306306 MemoryContext oldcontext = MemoryContextSwitchTo (brtab -> mcxt );
@@ -340,7 +340,7 @@ BlockRefTableEntry *
340340BlockRefTableGetEntry (BlockRefTable * brtab , const RelFileLocator * rlocator ,
341341 ForkNumber forknum , BlockNumber * limit_block )
342342{
343- BlockRefTableKey key = {0 }; /* make sure any padding is zero */
343+ BlockRefTableKey key = {{ 0 }}; /* make sure any padding is zero */
344344 BlockRefTableEntry * entry ;
345345
346346 Assert (limit_block != NULL );
@@ -517,7 +517,7 @@ WriteBlockRefTable(BlockRefTable *brtab,
517517 for (i = 0 ; i < brtab -> hash -> members ; ++ i )
518518 {
519519 BlockRefTableSerializedEntry * sentry = & sdata [i ];
520- BlockRefTableKey key = {0 }; /* make sure any padding is zero */
520+ BlockRefTableKey key = {{ 0 }}; /* make sure any padding is zero */
521521 unsigned j ;
522522
523523 /* Write the serialized entry itself. */
0 commit comments