From 4fdc92ca277e9a81a264058cb4ed2dfd9fd289c4 Mon Sep 17 00:00:00 2001 From: Brian Glod Date: Mon, 15 Jan 2018 13:35:27 -0500 Subject: [PATCH] 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. --- host/utilities/bladeRF-cli/src/cmd/printset.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/host/utilities/bladeRF-cli/src/cmd/printset.c b/host/utilities/bladeRF-cli/src/cmd/printset.c index d3b674b9..d987efda 100644 --- a/host/utilities/bladeRF-cli/src/cmd/printset.c +++ b/host/utilities/bladeRF-cli/src/cmd/printset.c @@ -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 */