]> granicus.if.org Git - postgresql/commitdiff
Fix LWLockReportWaitEnd() parameter list to be (void).
authorAndres Freund <andres@anarazel.de>
Sun, 27 Mar 2016 20:53:31 +0000 (22:53 +0200)
committerAndres Freund <andres@anarazel.de>
Sun, 27 Mar 2016 20:53:31 +0000 (22:53 +0200)
Previously it was an "old style" function declaration.

src/backend/storage/lmgr/lwlock.c

index 31626cb5b040b38f3a6054ffec1f30004b685996..53ae7d5f31034fa67a563e13f471112cdb3e75d7 100644 (file)
@@ -167,7 +167,7 @@ static void InitializeLWLocks(void);
 static void RegisterLWLockTranches(void);
 
 static inline void LWLockReportWaitStart(LWLock *lock);
-static inline void LWLockReportWaitEnd();
+static inline void LWLockReportWaitEnd(void);
 
 #ifdef LWLOCK_STATS
 typedef struct lwlock_stats_key
@@ -742,7 +742,7 @@ LWLockReportWaitStart(LWLock *lock)
  * Report end of wait event for light-weight locks.
  */
 static inline void
-LWLockReportWaitEnd()
+LWLockReportWaitEnd(void)
 {
        pgstat_report_wait_end();
 }