projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a18ee2e
)
Fixed compiler warnings (unused)
author
Armin Novak
<armin.novak@thincast.com>
Fri, 11 May 2018 09:00:01 +0000
(11:00 +0200)
committer
Armin Novak
<armin.novak@thincast.com>
Fri, 11 May 2018 09:00:01 +0000
(11:00 +0200)
winpr/libwinpr/synch/timer.c
patch
|
blob
|
history
diff --git
a/winpr/libwinpr/synch/timer.c
b/winpr/libwinpr/synch/timer.c
index
4adfdac
..
fb90a31
100644
(file)
--- 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,