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

Commit39de4f1

Browse files
committed
Fix compiler warnings about typedef redefinitions
Clang with -Wtypedef-redefinition produced warnings: src/include/storage/latch.h:122:3: error: redefinition of typedef 'Latch' is a C11 feature [-Werror,-Wtypedef-redefinition]Per buildfarm
1 parent7f7f324 commit39de4f1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎src/include/storage/waiteventset.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ typedef struct WaitEvent
7070
/* forward declarations to avoid exposing waiteventset.c implementation details */
7171
typedefstructWaitEventSetWaitEventSet;
7272

73-
typedefstructLatchLatch;
73+
structLatch;
7474

7575
/*
7676
* prototypes for functions in waiteventset.c
@@ -81,8 +81,9 @@ extern WaitEventSet *CreateWaitEventSet(ResourceOwner resowner, int nevents);
8181
externvoidFreeWaitEventSet(WaitEventSet*set);
8282
externvoidFreeWaitEventSetAfterFork(WaitEventSet*set);
8383
externintAddWaitEventToSet(WaitEventSet*set,uint32events,pgsocketfd,
84-
Latch*latch,void*user_data);
85-
externvoidModifyWaitEvent(WaitEventSet*set,intpos,uint32events,Latch*latch);
84+
structLatch*latch,void*user_data);
85+
externvoidModifyWaitEvent(WaitEventSet*set,intpos,uint32events,
86+
structLatch*latch);
8687
externintWaitEventSetWait(WaitEventSet*set,longtimeout,
8788
WaitEvent*occurred_events,intnevents,
8889
uint32wait_event_info);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp