guideline: Make explicit fallthrough cases
-Wimplicit-fallthrough=2 requires a fallthrough comment or a compiler to tells gcc that this happens intentionally. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
f0ec286759
commit
0aaae4a039
46 changed files with 105 additions and 101 deletions
|
@ -2210,7 +2210,7 @@ static void net_key_update(struct bt_mesh_model *model,
|
|||
send_net_key_status(model, ctx, idx, STATUS_SUCCESS);
|
||||
return;
|
||||
}
|
||||
/* fall through */
|
||||
__fallthrough;
|
||||
case BT_MESH_KR_PHASE_2:
|
||||
case BT_MESH_KR_PHASE_3:
|
||||
send_net_key_status(model, ctx, idx, STATUS_CANNOT_UPDATE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue