Plane: fix suppressing comment for case fall through

No functional change
eclipse stops complaining if no-break is used in place of fall-through
This commit is contained in:
Randy Mackay 2016-12-12 21:36:10 +09:00
parent 5f60961866
commit c3b6fd4315
2 changed files with 3 additions and 3 deletions

View File

@ -611,7 +611,7 @@ void Plane::update_flight_mode(void)
quadplane.guided_update();
break;
}
// fall through
// no break
case RTL:
case LOITER:
@ -834,7 +834,7 @@ void Plane::update_navigation()
if (radius > 0) {
loiter.direction = (g.rtl_radius < 0) ? -1 : 1;
}
// fall through to LOITER
// no break, fall through to LOITER
case LOITER:
case AVOID_ADSB:

View File

@ -7,7 +7,7 @@ void Plane::set_nav_controller(void)
default:
case AP_Navigation::CONTROLLER_DEFAULT:
// fall through to L1 as default controller
// no break, fall through to L1 as default controller
case AP_Navigation::CONTROLLER_L1:
nav_controller = &L1_controller;