Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbad0763

Browse files
committed
Fix erroneous -Werror=missing-braces on old GCC.
In the same spirit as5e0c761 and some earlier commits,suppress a chorus of buildfarm warnings about braces inthese initializers.Richard GuoDiscussion:https://postgr.es/m/CAMbWs48GzM-Ff7vr=_CeqaXxFBB9UntqtaW1cjU8hOo62AbOOg@mail.gmail.com
1 parent0a93f80 commitbad0763

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/common/blkreftable.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ BlockRefTableSetLimitBlock(BlockRefTable *brtab,
265265
BlockNumberlimit_block)
266266
{
267267
BlockRefTableEntry*brtentry;
268-
BlockRefTableKeykey= {0};/* make sure any padding is zero */
268+
BlockRefTableKeykey= {{0}};/* make sure any padding is zero */
269269
boolfound;
270270

271271
memcpy(&key.rlocator,rlocator,sizeof(RelFileLocator));
@@ -300,7 +300,7 @@ BlockRefTableMarkBlockModified(BlockRefTable *brtab,
300300
BlockNumberblknum)
301301
{
302302
BlockRefTableEntry*brtentry;
303-
BlockRefTableKeykey= {0};/* make sure any padding is zero */
303+
BlockRefTableKeykey= {{0}};/* make sure any padding is zero */
304304
boolfound;
305305
#ifndefFRONTEND
306306
MemoryContextoldcontext=MemoryContextSwitchTo(brtab->mcxt);
@@ -340,7 +340,7 @@ BlockRefTableEntry *
340340
BlockRefTableGetEntry(BlockRefTable*brtab,constRelFileLocator*rlocator,
341341
ForkNumberforknum,BlockNumber*limit_block)
342342
{
343-
BlockRefTableKeykey= {0};/* make sure any padding is zero */
343+
BlockRefTableKeykey= {{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-
BlockRefTableKeykey= {0};/* make sure any padding is zero */
520+
BlockRefTableKeykey= {{0}};/* make sure any padding is zero */
521521
unsignedj;
522522

523523
/* Write the serialized entry itself. */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp