host: bladeRF-cli: Intentional case fallthrough
Add compiler attribute to denote that the case fallthrough is intentional and to not throw a warning about it.
This commit is contained in:
parent
f06679bf78
commit
4fdc92ca27
1 changed files with 5 additions and 0 deletions
|
|
@ -821,6 +821,9 @@ int print_gain(struct cli_state *state, int argc, char **argv)
|
|||
case 4:
|
||||
/* One channel, one stage */
|
||||
stage = argv[3];
|
||||
|
||||
__attribute__((fallthrough));
|
||||
|
||||
case 3: { /* One channel, all stages */
|
||||
bool ok;
|
||||
channel = get_channel(argv[2], &ok);
|
||||
|
|
@ -828,6 +831,8 @@ int print_gain(struct cli_state *state, int argc, char **argv)
|
|||
invalid_channel(state, argv[0], argv[2]);
|
||||
rv = CLI_RET_INVPARAM;
|
||||
}
|
||||
|
||||
__attribute__((fallthrough));
|
||||
}
|
||||
case 2:
|
||||
/* All channels, all stages */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue