Fixed compiler warnings (unused)
This commit is contained in:
parent
a18ee2e7b2
commit
e71a39f214
@ -234,7 +234,6 @@ static int InitializeWaitableTimer(WINPR_TIMER* timer)
|
|||||||
if (!timer->lpArgToCompletionRoutine)
|
if (!timer->lpArgToCompletionRoutine)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_SYS_TIMERFD_H
|
#ifdef HAVE_SYS_TIMERFD_H
|
||||||
int status;
|
|
||||||
timer->fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK);
|
timer->fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK);
|
||||||
|
|
||||||
if (timer->fd <= 0)
|
if (timer->fd <= 0)
|
||||||
@ -330,9 +329,11 @@ HANDLE CreateWaitableTimerA(LPSECURITY_ATTRIBUTES lpTimerAttributes, BOOL bManua
|
|||||||
}
|
}
|
||||||
|
|
||||||
return handle;
|
return handle;
|
||||||
|
#if defined(__APPLE__)
|
||||||
fail:
|
fail:
|
||||||
TimerCloseHandle(handle);
|
TimerCloseHandle(handle);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
HANDLE CreateWaitableTimerW(LPSECURITY_ATTRIBUTES lpTimerAttributes, BOOL bManualReset,
|
HANDLE CreateWaitableTimerW(LPSECURITY_ATTRIBUTES lpTimerAttributes, BOOL bManualReset,
|
||||||
|
Loading…
Reference in New Issue
Block a user