Fix coreboot GCC7 build issue

This is fixed in coreboot master but backporting for Heads.

Closes #241
This commit is contained in:
Francis Lam 2017-12-02 15:14:42 -05:00
parent 61f6973c5c
commit 5f9567c390
No known key found for this signature in database
GPG Key ID: 0A59C698920806EB

View File

@ -475,3 +475,16 @@ index 738e285..c7c0c62 100644
+ }
+}
+
diff --git ./util/cbfstool/lz4/lib/lz4frame.c ./util/cbfstool/lz4/lib/lz4frame.c
index e5458bb..58fb68f 100644
--- ./util/cbfstool/lz4/lib/lz4frame.c
+++ ./util/cbfstool/lz4/lib/lz4frame.c
@@ -1091,7 +1091,7 @@ size_t LZ4F_decompress(LZ4F_decompressionContext_t decompressionContext,
dctxPtr->tmpInTarget = minFHSize; /* minimum to attempt decode */
dctxPtr->dStage = dstage_storeHeader;
}
-
+ /* Falls through. */
case dstage_storeHeader:
{
size_t sizeToCopy = dctxPtr->tmpInTarget - dctxPtr->tmpInSize;