Browse Source

Revert "Remove some compiler warnings"

This reverts commit 76671249d62e0931fdac3849ef474d57f780a61e.
Joel Bodenmann 3 years ago
parent
commit
09eba89afd
2 changed files with 3 additions and 1 deletions
  1. 2 0
      src/gos/gos_x_threads.c
  2. 1 1
      src/gtimer/gtimer.c

+ 2 - 0
src/gos/gos_x_threads.c

@@ -122,6 +122,7 @@ void gfxSleepMilliseconds(delaytime_t ms) {
122 122
 	case TIME_INFINITE:
123 123
 		while(1)
124 124
 			gfxYield();
125
+		return;
125 126
 	}
126 127
 
127 128
 	// Convert our delay to ticks
@@ -143,6 +144,7 @@ void gfxSleepMicroseconds(delaytime_t ms) {
143 144
 	case TIME_INFINITE:
144 145
 		while(1)
145 146
 			gfxYield();
147
+		return;
146 148
 	}
147 149
 
148 150
 	// Convert our delay to ticks

+ 1 - 1
src/gtimer/gtimer.c

@@ -109,7 +109,7 @@ static DECLARE_THREAD_FUNCTION(GTimerThreadHandler, arg) {
109 109
 		lastTime = tm;
110 110
 		gfxMutexExit(&mutex);
111 111
 	}
112
-//	THREAD_RETURN(0);
112
+	THREAD_RETURN(0);
113 113
 }
114 114
 
115 115
 void _gtimerInit(void)