Commit 20899616 authored by Scott Vokes's avatar Scott Vokes
Browse files

(void) unused flag, if clock_gettime(CLOCK_MONOTONIC, &timespec) is unavailable.

parent 2368c639
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -42,6 +42,8 @@ bool util_timestamp(struct timeval *tv, bool relative) {
        tv.tv_usec = tv.tv_nsec / 1000L;
        return true;
    }
#else
    (void)relative;
#endif
    return (0 == gettimeofday(tv, NULL));
}