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:
Lucas De Marchi 2017-08-22 10:28:10 -07:00
parent 8389158d76
commit 0e502d89a3

View File

@ -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;