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
|
@ -3408,7 +3408,7 @@ int bt_gatt_discover(struct bt_conn *conn,
|
|||
!bt_uuid_cmp(params->uuid, BT_UUID_GATT_CHRC))) {
|
||||
return -EINVAL;
|
||||
}
|
||||
/* Fallthrough. */
|
||||
__fallthrough;
|
||||
case BT_GATT_DISCOVER_ATTRIBUTE:
|
||||
return gatt_find_info(conn, params);
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue