Skip to content

Commit 55cfefd

Browse files
author
chenchaoqun
committed
[add] switch default clause
1 parent e6b7215 commit 55cfefd

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Diff for: src/ipc.c

+3
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ rt_inline rt_err_t rt_ipc_list_suspend(rt_list_t *list,
117117
rt_list_insert_before(list, &(thread->tlist));
118118
}
119119
break;
120+
121+
default:
122+
break;
120123
}
121124

122125
return RT_EOK;

Diff for: src/timer.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,10 @@ rt_err_t rt_timer_control(rt_timer_t timer, int cmd, void *arg)
500500
/*timer is stop*/
501501
*(rt_tick_t *)arg = RT_TIMER_FLAG_DEACTIVATED;
502502
}
503-
break;
503+
break;
504+
505+
default:
506+
break;
504507
}
505508

506509
return RT_EOK;

0 commit comments

Comments
 (0)