mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-11 10:03:40 +00:00
cpukit/*: Correct implicit fallthrough warnings
Use RTEMS_FALL_THROUGH() to annotate case statements which intentionally do not have a break statement.
This commit is contained in:
committed by
Gedare Bloom
parent
fef5e18ada
commit
106363b29d
@@ -231,10 +231,13 @@ rtems_debugger_target_swbreak_control(bool insert, uintptr_t addr, DB_UINT kind)
|
||||
switch (target->breakpoint_size) {
|
||||
case 4:
|
||||
loc[3] = swbreaks[i].contents[3];
|
||||
RTEMS_FALL_THROUGH();
|
||||
case 3:
|
||||
loc[2] = swbreaks[i].contents[2];
|
||||
RTEMS_FALL_THROUGH();
|
||||
case 2:
|
||||
loc[1] = swbreaks[i].contents[1];
|
||||
RTEMS_FALL_THROUGH();
|
||||
case 1:
|
||||
loc[0] = swbreaks[i].contents[0];
|
||||
break;
|
||||
@@ -269,10 +272,13 @@ rtems_debugger_target_swbreak_control(bool insert, uintptr_t addr, DB_UINT kind)
|
||||
switch (target->breakpoint_size) {
|
||||
case 4:
|
||||
contents[3] = loc[3];
|
||||
RTEMS_FALL_THROUGH();
|
||||
case 3:
|
||||
contents[2] = loc[2];
|
||||
RTEMS_FALL_THROUGH();
|
||||
case 2:
|
||||
contents[1] = loc[1];
|
||||
RTEMS_FALL_THROUGH();
|
||||
case 1:
|
||||
contents[0] = loc[0];
|
||||
break;
|
||||
@@ -315,10 +321,13 @@ rtems_debugger_target_swbreak_insert(void)
|
||||
switch (target->breakpoint_size) {
|
||||
case 4:
|
||||
loc[3] = target->breakpoint[3];
|
||||
RTEMS_FALL_THROUGH();
|
||||
case 3:
|
||||
loc[2] = target->breakpoint[2];
|
||||
RTEMS_FALL_THROUGH();
|
||||
case 2:
|
||||
loc[1] = target->breakpoint[1];
|
||||
RTEMS_FALL_THROUGH();
|
||||
case 1:
|
||||
loc[0] = target->breakpoint[0];
|
||||
break;
|
||||
@@ -358,10 +367,13 @@ rtems_debugger_target_swbreak_remove(void)
|
||||
switch (target->breakpoint_size) {
|
||||
case 4:
|
||||
loc[3] = contents[3];
|
||||
RTEMS_FALL_THROUGH();
|
||||
case 3:
|
||||
loc[2] = contents[2];
|
||||
RTEMS_FALL_THROUGH();
|
||||
case 2:
|
||||
loc[1] = contents[1];
|
||||
RTEMS_FALL_THROUGH();
|
||||
case 1:
|
||||
loc[0] = contents[0];
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user