summaryrefslogtreecommitdiff
path: root/futility
diff options
context:
space:
mode:
authorManoj Gupta <manojgupta@google.com>2019-11-04 17:17:39 -0800
committerCommit Bot <commit-bot@chromium.org>2020-02-01 03:54:08 +0000
commit6208b9aa9c4e8b7c9ff8063965c9f9aa519c1740 (patch)
tree66f3e866b0348c5d5940a9a97fd4159a24b44855 /futility
parent0e97e25e85f0499e23b09a31a2c7116759f191d5 (diff)
downloadvboot-6208b9aa9c4e8b7c9ff8063965c9f9aa519c1740.tar.gz
Reland: Clean up implicit fall through.
Directly use the __attribute__ ((fallthrough)) instead of a macro. This was suggested in CL:1772474. BUG=chromium:997709 TEST=CQ BRANCH=None Change-Id: Ifcdcd3822eddea41aeb88f4a55bd09aa483f6054 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2031766 Tested-by: Manoj Gupta <manojgupta@chromium.org> Reviewed-by: Julius Werner <jwerner@chromium.org> Commit-Queue: Manoj Gupta <manojgupta@chromium.org>
Diffstat (limited to 'futility')
-rw-r--r--futility/cmd_dump_fmap.c4
-rw-r--r--futility/cmd_sign.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/futility/cmd_dump_fmap.c b/futility/cmd_dump_fmap.c
index ef46ffcd..48f9185c 100644
--- a/futility/cmd_dump_fmap.c
+++ b/futility/cmd_dump_fmap.c
@@ -444,7 +444,7 @@ static int do_dump_fmap(int argc, char *argv[])
break;
case 'H':
opt_gaps = 1;
- VBOOT_FALLTHROUGH;
+ __attribute__ ((fallthrough));
case 'h':
opt_format = FMT_HUMAN;
opt_overlap++;
@@ -507,7 +507,7 @@ static int do_dump_fmap(int argc, char *argv[])
case FMT_NORMAL:
printf("hit at 0x%08x\n",
(uint32_t) ((char *)fmap - (char *)base_of_rom));
- VBOOT_FALLTHROUGH;
+ __attribute__ ((fallthrough));
default:
retval = normal_fmap(fmap,
argc - optind - 1,
diff --git a/futility/cmd_sign.c b/futility/cmd_sign.c
index c69f7124..117a6536 100644
--- a/futility/cmd_sign.c
+++ b/futility/cmd_sign.c
@@ -719,7 +719,7 @@ static int do_sign(int argc, char *argv[])
break;
case OPT_FV:
sign_option.fv_specified = 1;
- VBOOT_FALLTHROUGH;
+ __attribute__ ((fallthrough));
case OPT_INFILE:
sign_option.inout_file_count++;
infile = optarg;