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>2019-11-05 15:51:53 +0000
commit6a703f5b0edfdbf2eee72d59499f73585262a46f (patch)
tree1c455c3a6d4c1040717a8722fe34860447357adc /futility
parent0230c900bcfe6c6a61b66914951e5f01fa2311c6 (diff)
downloadvboot-6a703f5b0edfdbf2eee72d59499f73585262a46f.tar.gz
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: Ic6cd417d7c735395a4b136dbb0879a6f1716da98 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1897360 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 fb096763..9bfba4f8 100644
--- a/futility/cmd_sign.c
+++ b/futility/cmd_sign.c
@@ -721,7 +721,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;