Skip to content

Commit

Permalink
fix unused variables under windows
Browse files Browse the repository at this point in the history
Fixes compilation as -Werror is passed.
  • Loading branch information
neheb authored May 2, 2021
1 parent 497bcac commit a02cbd0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/clock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()),
Expand Down

0 comments on commit a02cbd0

Please sign in to comment.