Skip to content

Commit 7f7f59a

Browse files
author
pippocao
committed
fix compiling error when CLOCK_MONOTONIC is not supported
1 parent 4dca832 commit 7f7f59a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bq_common/platform/thread/condition_variable_posix.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ namespace bq {
7575
}
7676
}
7777
#endif
78+
(void)use_monotonic;
7879
if (clock_gettime(CLOCK_REALTIME, &ts) == 0) {
7980
return static_cast<uint64_t>(ts.tv_sec) * 1000000000ULL + static_cast<uint64_t>(ts.tv_nsec);
8081
}

0 commit comments

Comments
 (0)