summaryrefslogtreecommitdiff
path: root/host
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2020-11-18 16:31:27 -0800
committerJulius Werner <jwerner@chromium.org>2020-11-20 01:51:08 +0000
commit9d4053df76c127f625a8571d3ef16e6a063c8de5 (patch)
treec266dd5dd83a6b64fee9f31012b396539b1f6a6b /host
parentabcd6d24548480c1b3aeb5998c15b8548cea3b76 (diff)
downloadvboot-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 'host')
-rw-r--r--host/lib/crossystem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/crossystem.c b/host/lib/crossystem.c
index 25a55d82..bb10c399 100644
--- a/host/lib/crossystem.c
+++ b/host/lib/crossystem.c
@@ -313,7 +313,7 @@ static int GetVdatInt(VdatIntField field)
break;
case VDAT_INT_FW_BOOT2:
value = (sh->flags & VBSD_BOOT_FIRMWARE_VBOOT2 ? 1 : 0);
- __attribute__ ((fallthrough));
+ VBOOT_FALLTHROUGH;
default:
break;
}