Skip to content

Commit 53293df

Browse files
authored
Merge pull request #13963 from evedon/warnings
Fix ThisThread warnings
2 parents 56f7310 + 786c64a commit 53293df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rtos/source/ThisThread.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ void ThisThread::sleep_for(Clock::duration_u32 rel_time)
223223
#if MBED_CONF_RTOS_PRESENT
224224
osStatus_t status = osDelay(rel_time.count());
225225
MBED_ASSERT(status == osOK);
226+
(void) status;
226227
#else
227228
thread_sleep_for(rel_time.count());
228229
#endif
@@ -242,10 +243,12 @@ void ThisThread::sleep_until(Clock::time_point abs_time)
242243
if (abs_time - now > wait_for_u32_max) {
243244
osStatus_t status = osDelay(wait_for_u32_max.count());
244245
MBED_ASSERT(status == osOK);
246+
(void) status;
245247
continue;
246248
} else {
247249
osStatus_t status = osDelay((abs_time - now).count());
248250
MBED_ASSERT(status == osOK);
251+
(void) status;
249252
break;
250253
}
251254
}

0 commit comments

Comments
 (0)