Skip to content

Commit 9abcbf6

Browse files
authored
Merge pull request #7901 from deepikabhavnani/warning_fix
Compiler Warning fixes
2 parents 40e9f41 + 64d3bd8 commit 9abcbf6

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

hal/mbed_ticker_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static void initialize(const ticker_data_t *ticker)
4747

4848
uint8_t frequency_shifts = 0;
4949
for (uint8_t i = 31; i > 0; --i) {
50-
if ((1 << i) == frequency) {
50+
if ((1U << i) == frequency) {
5151
frequency_shifts = i;
5252
break;
5353
}

rtos/TARGET_CORTEX/mbed_rtx_handlers.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ __NO_RETURN void osRtxIdleThread(void *argument)
5555

5656
__NO_RETURN uint32_t osRtxErrorNotify(uint32_t code, void *object_id)
5757
{
58-
osThreadId_t tid = osThreadGetId();
59-
6058
switch (code) {
6159
case osRtxErrorStackUnderflow:
6260
// Stack underflow detected for thread (thread_id=object_id)

0 commit comments

Comments
 (0)