From 881e2bc344f43bf04927fb2045f46f3d3f611d36 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 4 Aug 2024 20:34:10 -0700 Subject: [PATCH] Fixed build --- src/timer/SDL_timer.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/timer/SDL_timer.c b/src/timer/SDL_timer.c index a4420bb9a9..a936367f9b 100644 --- a/src/timer/SDL_timer.c +++ b/src/timer/SDL_timer.c @@ -353,7 +353,6 @@ int SDL_RemoveTimer(SDL_TimerID id) { SDL_TimerData *data = &SDL_timer_data; SDL_TimerMap *prev, *entry; - SDL_bool canceled = SDL_FALSE; if (!id) { return SDL_InvalidParamError("id"); @@ -377,7 +376,6 @@ int SDL_RemoveTimer(SDL_TimerID id) if (entry) { if (!SDL_AtomicGet(&entry->timer->canceled)) { SDL_AtomicSet(&entry->timer->canceled, 1); - canceled = SDL_TRUE; } SDL_free(entry); }