Make all the declarations of WaitEventSetWaitBlock be marked "inline".
authorTom Lane <[email protected]>
Sat, 2 Apr 2016 17:55:44 +0000 (13:55 -0400)
committerTom Lane <[email protected]>
Sat, 2 Apr 2016 17:55:44 +0000 (13:55 -0400)
The inconsistency here triggered compiler warnings on some buildfarm
members, and it's surely pretty pointless.

src/backend/storage/ipc/latch.c

index 5641bd5ec9f9132b9e8e4784aa8c8fd581bdff98..3fbe0e50795ff503e343d28a7bd02a9b54e053d5 100644 (file)
@@ -143,7 +143,7 @@ static void WaitEventAdjustPoll(WaitEventSet *set, WaitEvent *event);
 static void WaitEventAdjustWin32(WaitEventSet *set, WaitEvent *event);
 #endif
 
-static int WaitEventSetWaitBlock(WaitEventSet *set, int cur_timeout,
+static inline int WaitEventSetWaitBlock(WaitEventSet *set, int cur_timeout,
                      WaitEvent *occurred_events, int nevents);
 
 /*
@@ -968,7 +968,7 @@ WaitEventSetWait(WaitEventSet *set, long timeout,
  * epoll_event struct contain a pointer to our events, making association
  * easy.
  */
-static int
+static inline int
 WaitEventSetWaitBlock(WaitEventSet *set, int cur_timeout,
                      WaitEvent *occurred_events, int nevents)
 {