Переглянути джерело

Suppress unused variable warning on linux

--HG--
branch : minor
Bart van Strien 8 роки тому
батько
коміт
f4e515edac
1 змінених файлів з 2 додано та 0 видалено
  1. 2 0
      src/modules/timer/Timer.cpp

+ 2 - 0
src/modules/timer/Timer.cpp

@@ -129,6 +129,8 @@ double Timer::getTime()
 	static const double timerPeriod = getTimerPeriod();
 
 #if defined(LOVE_LINUX)
+	(void) timerPeriod; // Unused on linux
+
 	double mt;
 	// Check for POSIX timers and monotonic clocks. If not supported, use the gettimeofday fallback.
 #if _POSIX_TIMERS > 0 && defined(_POSIX_MONOTONIC_CLOCK) \