Subrata Banik has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/69091 )
Change subject: cbfstool/lz4: Fix compilation issue ......................................................................
cbfstool/lz4: Fix compilation issue
This patch fixes the below compilation issue as below.
Compilation Error: `a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]`
Signed-off-by: Subrata Banik subratabanik@google.com Change-Id: I82110085c39d001afbdf777481fd7fb1553d731d --- M util/cbfstool/lz4/lib/lz4.c 1 file changed, 18 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/91/69091/1
diff --git a/util/cbfstool/lz4/lib/lz4.c b/util/cbfstool/lz4/lib/lz4.c index e393690..d5df484 100644 --- a/util/cbfstool/lz4/lib/lz4.c +++ b/util/cbfstool/lz4/lib/lz4.c @@ -415,7 +415,7 @@ **************************************/ int LZ4_versionNumber (void) { return LZ4_VERSION_NUMBER; } int LZ4_compressBound(int isize) { return LZ4_COMPRESSBOUND(isize); } -int LZ4_sizeofState() { return LZ4_STREAMSIZE; } +int LZ4_sizeofState(void) { return LZ4_STREAMSIZE; }
@@ -1523,7 +1523,7 @@
/* Obsolete Streaming functions */
-int LZ4_sizeofStreamState() { return LZ4_STREAMSIZE; } +int LZ4_sizeofStreamState(void) { return LZ4_STREAMSIZE; }
static void LZ4_init(LZ4_stream_t_internal* lz4ds, BYTE* base) {