From 31a19a1f6b02fe5638c877868be1ff26b5e44abe Mon Sep 17 00:00:00 2001 From: Lizzy Fleckenstein Date: Tue, 9 Jan 2024 22:01:46 +0100 Subject: fix warning in clock.c --- stage3/clock.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stage3/clock.c b/stage3/clock.c index e2b9064..a1672f1 100644 --- a/stage3/clock.c +++ b/stage3/clock.c @@ -2,7 +2,6 @@ #include "pic.h" #include "font.h" #include "io.h" -#include "thread.h" #include "heap.h" #include "halt.h" @@ -59,7 +58,7 @@ void clock_sync() u64 rtc_time = monoclock_rtc_time; if (last_sync + SYNC_INTERVAL <= rtc_time) { u64 ring_next = (ring_pos + 1) % RING; - u64 diff = rtc_time - last_sync_ring[ring_next]; + // u64 diff = rtc_time - last_sync_ring[ring_next]; last_sync = rtc_time; last_cycles = cycles; last_hd_time = monotime; -- cgit v1.2.3