From ab3738624fd57330cff7ff8e0383eb6df3414938 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sat, 11 Sep 2021 10:11:00 +1000 Subject: [PATCH] [client] x11: reduce the scope of `deltats` --- client/displayservers/X11/x11.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/displayservers/X11/x11.c b/client/displayservers/X11/x11.c index d05e13db..020d8439 100644 --- a/client/displayservers/X11/x11.c +++ b/client/displayservers/X11/x11.c @@ -1358,11 +1358,10 @@ static bool x11WaitFrame(void) static uint64_t lastmsc = 0; static uint64_t delay = 0; - uint64_t deltats = 0; uint64_t deltamsc = 0; if (lastts) { - deltats = ust - lastts; + uint64_t deltats = ust - lastts; deltamsc = msc - lastmsc; if (calibrate == 0)