From e71a39f214abf0f3834247fe504a05fa0f4bbf00 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Fri, 11 May 2018 11:00:01 +0200 Subject: [PATCH] Fixed compiler warnings (unused) --- winpr/libwinpr/synch/timer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/winpr/libwinpr/synch/timer.c b/winpr/libwinpr/synch/timer.c index 4adfdac..fb90a31 100644 --- a/winpr/libwinpr/synch/timer.c +++ b/winpr/libwinpr/synch/timer.c @@ -234,7 +234,6 @@ static int InitializeWaitableTimer(WINPR_TIMER* timer) if (!timer->lpArgToCompletionRoutine) { #ifdef HAVE_SYS_TIMERFD_H - int status; timer->fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK); if (timer->fd <= 0) @@ -330,9 +329,11 @@ HANDLE CreateWaitableTimerA(LPSECURITY_ATTRIBUTES lpTimerAttributes, BOOL bManua } return handle; +#if defined(__APPLE__) fail: TimerCloseHandle(handle); return NULL; +#endif } HANDLE CreateWaitableTimerW(LPSECURITY_ATTRIBUTES lpTimerAttributes, BOOL bManualReset, -- 2.7.4