forked from pool/coreboot-utils
Olaf Hering
d0f499d0d5
- Add do-explicit-fallthrough.patch to fix a build failure with gcc7 with an implicit fallthrough over switch cases (only on TW) - Add -fPIC to no-pie.patch and remove -fno-pic to build with gcc7 OBS-URL: https://build.opensuse.org/request/show/504196 OBS-URL: https://build.opensuse.org/package/show/hardware/coreboot-utils?expand=0&rev=26
14 lines
619 B
Diff
14 lines
619 B
Diff
Index: coreboot-4.5/util/cbfstool/lz4/lib/lz4frame.c
|
|
===================================================================
|
|
--- coreboot-4.5.orig/util/cbfstool/lz4/lib/lz4frame.c
|
|
+++ coreboot-4.5/util/cbfstool/lz4/lib/lz4frame.c
|
|
@@ -1091,7 +1091,7 @@ size_t LZ4F_decompress(LZ4F_decompressio
|
|
dctxPtr->tmpInTarget = minFHSize; /* minimum to attempt decode */
|
|
dctxPtr->dStage = dstage_storeHeader;
|
|
}
|
|
-
|
|
+ __attribute__ ((fallthrough));
|
|
case dstage_storeHeader:
|
|
{
|
|
size_t sizeToCopy = dctxPtr->tmpInTarget - dctxPtr->tmpInSize;
|