From f4e515edacb62dfbd01b1d66ace83ad03f55451f Mon Sep 17 00:00:00 2001 From: Bart van Strien Date: Mon, 16 Oct 2017 14:46:06 +0200 Subject: [PATCH] Suppress unused variable warning on linux --HG-- branch : minor --- src/modules/timer/Timer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/timer/Timer.cpp b/src/modules/timer/Timer.cpp index 95b511953..d952117ba 100644 --- a/src/modules/timer/Timer.cpp +++ b/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) \