mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Suppress unused variable warning on linux
--HG-- branch : minor
This commit is contained in:
@@ -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) \
|
||||
|
||||
Reference in New Issue
Block a user