Przeglądaj źródła

Merge pull request #8189 from ghalliday/issue14570b

HPCC-14570 Fix build problem from unused variable

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 9 lat temu
rodzic
commit
f91cc010c4
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      system/jlib/jdebug.cpp

+ 3 - 3
system/jlib/jdebug.cpp

@@ -299,9 +299,6 @@ double getCycleToNanoScale()
 
 #else
 
-#if defined(CLOCK_MONOTONIC) && !defined(__APPLE__)
-static bool use_gettimeofday=false;
-#endif
 #if defined(_ARCH_X86_) || defined(_ARCH_X86_64_)
 static bool useRDTSC = _USE_RDTSC;
 #endif
@@ -364,6 +361,9 @@ void calibrate_timing()
 
 
 #if !defined(INLINE_GET_CYCLES_NOW) || !defined(HAS_GOOD_CYCLE_COUNTER)
+#if defined(CLOCK_MONOTONIC) && !defined(__APPLE__)
+static bool use_gettimeofday=false;
+#endif
 cycle_t jlib_decl get_cycles_now()
 {
 #if defined(_ARCH_X86_) || defined(_ARCH_X86_64_)