diff options
author | Julius Werner <jwerner@chromium.org> | 2020-11-18 16:31:27 -0800 |
---|---|---|
committer | Julius Werner <jwerner@chromium.org> | 2020-11-20 01:51:08 +0000 |
commit | 9d4053df76c127f625a8571d3ef16e6a063c8de5 (patch) | |
tree | c266dd5dd83a6b64fee9f31012b396539b1f6a6b /firmware/lib/vboot_ui_legacy_wilco.c | |
parent | abcd6d24548480c1b3aeb5998c15b8548cea3b76 (diff) | |
download | vboot-9d4053df76c127f625a8571d3ef16e6a063c8de5.tar.gz |
Revert "Reland: Clean up implicit fall through."stabilize-rust-13613.B
This reverts commit 6208b9aa9c4e8b7c9ff8063965c9f9aa519c1740.
Upstream coreboot has raised concerns that relying on GCC 7+ features
for host utilities is too restrictive, so revert this and go back to
customizing fallthrough annotations by compiler. Cleaned out some of the
C++-specific stuff because vboot isn't built with C++.
BRANCH=None
BUG=None
TEST=Built with clang and GCC.
Change-Id: I75d796d289b0a6c249fc8ac2dadb1453be468642
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2547821
Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
Reviewed-by: Joel Kitching <kitching@chromium.org>
Diffstat (limited to 'firmware/lib/vboot_ui_legacy_wilco.c')
-rw-r--r-- | firmware/lib/vboot_ui_legacy_wilco.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/lib/vboot_ui_legacy_wilco.c b/firmware/lib/vboot_ui_legacy_wilco.c index 59a49684..7838bcfe 100644 --- a/firmware/lib/vboot_ui_legacy_wilco.c +++ b/firmware/lib/vboot_ui_legacy_wilco.c @@ -67,7 +67,7 @@ static vb2_error_t vb2_enter_vendor_data_ui(struct vb2_context *ctx, return VB2_SUCCESS; case 'a'...'z': key = toupper(key); - __attribute__ ((fallthrough)); + VBOOT_FALLTHROUGH; case '0'...'9': case 'A'...'Z': if ((len > 0 && is_vowel(key)) || |