From b9ba27b3eef1e36d8c6d05e6f705a98a9a48057f Mon Sep 17 00:00:00 2001 From: Deepika Date: Mon, 27 Aug 2018 10:32:35 -0500 Subject: [PATCH 1/2] Fixed: @44,18: unused variable 'tid' [-Wunused-variable] --- rtos/TARGET_CORTEX/mbed_rtx_handlers.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/rtos/TARGET_CORTEX/mbed_rtx_handlers.c b/rtos/TARGET_CORTEX/mbed_rtx_handlers.c index 223874e4e52..33204e61908 100644 --- a/rtos/TARGET_CORTEX/mbed_rtx_handlers.c +++ b/rtos/TARGET_CORTEX/mbed_rtx_handlers.c @@ -41,8 +41,6 @@ __NO_RETURN void osRtxIdleThread (void *argument) __NO_RETURN uint32_t osRtxErrorNotify (uint32_t code, void *object_id) { - osThreadId_t tid = osThreadGetId(); - switch (code) { case osRtxErrorStackUnderflow: // Stack underflow detected for thread (thread_id=object_id) From 64d3bd8199064ecb0462ee7f0b13bf9f689080ea Mon Sep 17 00:00:00 2001 From: Deepika Date: Mon, 27 Aug 2018 10:34:58 -0500 Subject: [PATCH 2/2] Fixed: comparison between signed and unsigned integer expressions --- hal/mbed_ticker_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hal/mbed_ticker_api.c b/hal/mbed_ticker_api.c index 8f7a97ca54c..03a7765ccff 100644 --- a/hal/mbed_ticker_api.c +++ b/hal/mbed_ticker_api.c @@ -44,7 +44,7 @@ static void initialize(const ticker_data_t *ticker) uint8_t frequency_shifts = 0; for (uint8_t i = 31; i > 0; --i) { - if ((1 << i) == frequency) { + if ((1U << i) == frequency) { frequency_shifts = i; break; }