mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
AP_HAL: use FALLTHROUGH define
When falling through on a case switch, allow to add an empty statement with the correct attribute to tell the compiler this behavior is intended.
This commit is contained in:
parent
8389158d76
commit
0e502d89a3
@ -428,7 +428,8 @@ flt_oper:
|
||||
goto ultoa;
|
||||
case 'p':
|
||||
flags |= FL_ALT;
|
||||
/* no break */
|
||||
|
||||
FALLTHROUGH;
|
||||
case 'x':
|
||||
if (flags & FL_ALT)
|
||||
flags |= FL_ALTHEX;
|
||||
|
Loading…
Reference in New Issue
Block a user