mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-09 12:28:19 -04:00
Avoid unused-var warning on systems with clock_gettime but without CLOCK_MONOTONIC_COARSE
This commit is contained in:
parent
a64c56470d
commit
9be546809a
@ -177,7 +177,9 @@ evutil_configure_monotonic_time_(struct evutil_monotonic_timer *base,
|
||||
/* CLOCK_MONOTONIC exists on FreeBSD, Linux, and Solaris. You need to
|
||||
* check for it at runtime, because some older kernel versions won't
|
||||
* have it working. */
|
||||
#ifdef CLOCK_MONOTONIC_COARSE
|
||||
const int precise = flags & EV_MONOT_PRECISE;
|
||||
#endif
|
||||
const int fallback = flags & EV_MONOT_FALLBACK;
|
||||
struct timespec ts;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user