From 09eba89afd3667371aa8771e2ab1f2ba134cacd8 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Wed, 14 Dec 2016 15:00:43 +0100 Subject: [PATCH] Revert "Remove some compiler warnings" This reverts commit 76671249d62e0931fdac3849ef474d57f780a61e. --- src/gos/gos_x_threads.c | 2 ++ src/gtimer/gtimer.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gos/gos_x_threads.c b/src/gos/gos_x_threads.c index 520a8a64..b696ee77 100644 --- a/src/gos/gos_x_threads.c +++ b/src/gos/gos_x_threads.c @@ -122,6 +122,7 @@ void gfxSleepMilliseconds(delaytime_t ms) { case TIME_INFINITE: while(1) gfxYield(); + return; } // Convert our delay to ticks @@ -143,6 +144,7 @@ void gfxSleepMicroseconds(delaytime_t ms) { case TIME_INFINITE: while(1) gfxYield(); + return; } // Convert our delay to ticks diff --git a/src/gtimer/gtimer.c b/src/gtimer/gtimer.c index eda88d5a..22ec9ed2 100644 --- a/src/gtimer/gtimer.c +++ b/src/gtimer/gtimer.c @@ -109,7 +109,7 @@ static DECLARE_THREAD_FUNCTION(GTimerThreadHandler, arg) { lastTime = tm; gfxMutexExit(&mutex); } -// THREAD_RETURN(0); + THREAD_RETURN(0); } void _gtimerInit(void)