Subrata Banik has uploaded this change for review.

View Change

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)
{

To view, visit change 69091. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I82110085c39d001afbdf777481fd7fb1553d731d
Gerrit-Change-Number: 69091
Gerrit-PatchSet: 1
Gerrit-Owner: Subrata Banik <subratabanik@google.com>
Gerrit-MessageType: newchange