blob: 5308022924c0ec3e4de761d0dd6628e90825ebf6 [file] [log] [blame]
From a02cbd0646175a44edb1d636911eb8dae12ec13f Mon Sep 17 00:00:00 2001
From: Rosen Penev <rosenp@gmail.com>
Date: Sun, 2 May 2021 16:49:27 -0700
Subject: [PATCH] fix unused variables under windows
Fixes compilation as -Werror is passed.
---
src/clock.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/clock.cpp b/src/clock.cpp
index 79522ad38..93da90a8e 100644
--- a/src/clock.cpp
+++ b/src/clock.cpp
@@ -126,9 +126,11 @@ static f_compatible_get_tick_count64 my_get_tick_count64 =
init_compatible_get_tick_count64 ();
#endif
+#ifndef ZMQ_HAVE_WINDOWS
const uint64_t usecs_per_msec = 1000;
-const uint64_t usecs_per_sec = 1000000;
const uint64_t nsecs_per_usec = 1000;
+#endif
+const uint64_t usecs_per_sec = 1000000;
zmq::clock_t::clock_t () :
_last_tsc (rdtsc ()),