From 6208b9aa9c4e8b7c9ff8063965c9f9aa519c1740 Mon Sep 17 00:00:00 2001 From: Manoj Gupta Date: Mon, 4 Nov 2019 17:17:39 -0800 Subject: 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 Reviewed-by: Julius Werner Commit-Queue: Manoj Gupta --- host/lib/crossystem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host') diff --git a/host/lib/crossystem.c b/host/lib/crossystem.c index 94baf667..3c429bba 100644 --- a/host/lib/crossystem.c +++ b/host/lib/crossystem.c @@ -413,7 +413,7 @@ static int GetVdatInt(VdatIntField field) break; case VDAT_INT_FW_BOOT2: value = (sh->flags & VBSD_BOOT_FIRMWARE_VBOOT2 ? 1 : 0); - VBOOT_FALLTHROUGH; + __attribute__ ((fallthrough)); default: break; } -- cgit v1.2.1