| 1 |
From 06aba27b04c5822cb88a69677382a0f053367143 Mon Sep 17 00:00:00 2001 |
| 2 |
From: sabotagebeats <[email protected]> |
| 3 |
Date: Thu, 22 Jul 2021 21:53:19 -0700 |
| 4 |
Subject: [PATCH] fix: building libzmq fails with error src/clock.cpp:131:16: |
| 5 |
error: unused variable 'nsecs_per_usec' |
| 6 |
|
| 7 |
--- |
| 8 |
src/clock.cpp | 1 + |
| 9 |
1 file changed, 1 insertion(+) |
| 10 |
|
| 11 |
diff --git a/src/clock.cpp b/src/clock.cpp |
| 12 |
index 93da90a8e..63c0100a5 100644 |
| 13 |
--- a/src/clock.cpp |
| 14 |
+++ b/src/clock.cpp |
| 15 |
@@ -195,6 +195,7 @@ uint64_t zmq::clock_t::now_us () |
| 16 |
|
| 17 |
#else |
| 18 |
|
| 19 |
+ LIBZMQ_UNUSED (nsecs_per_usec); |
| 20 |
// Use POSIX gettimeofday function to get precise time. |
| 21 |
struct timeval tv; |
| 22 |
int rc = gettimeofday (&tv, NULL); |