diff options
author | Andrew Deason <adeason@sinenomine.net> | 2020-05-06 19:36:56 (GMT) |
---|---|---|
committer | Andrew Deason <adeason@sinenomine.net> | 2020-05-07 20:02:09 (GMT) |
commit | 12001d6c1ac08e188587d67d888aa008b2e1ceba (patch) | |
tree | 947f46290db53ada7d9e1ae284abe29b853d7972 /lib | |
parent | 3d67671559be723b0912bbee2fcd2eb14783a721 (diff) | |
download | lz4-12001d6c1ac08e188587d67d888aa008b2e1ceba.zip lz4-12001d6c1ac08e188587d67d888aa008b2e1ceba.tar.gz lz4-12001d6c1ac08e188587d67d888aa008b2e1ceba.tar.bz2 |
Avoid old-style function definitions
Define 0-argument functions like foo(void) instead of foo(), in order
to avoid a warning with -Wold-style-definition. This makes it easier
to embed lz4.c in projects that compile with -Werror
-Wold-style-definition.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lz4.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -605,7 +605,7 @@ typedef enum { noDictIssue = 0, dictSmall } dictIssue_directive; int LZ4_versionNumber (void) { return LZ4_VERSION_NUMBER; } const char* LZ4_versionString(void) { return LZ4_VERSION_STRING; } int LZ4_compressBound(int isize) { return LZ4_COMPRESSBOUND(isize); } -int LZ4_sizeofState() { return LZ4_STREAMSIZE; } +int LZ4_sizeofState(void) { return LZ4_STREAMSIZE; } /*-************************************ @@ -2374,7 +2374,7 @@ int LZ4_uncompress_unknownOutputSize (const char* source, char* dest, int isize, /* Obsolete Streaming functions */ -int LZ4_sizeofStreamState() { return LZ4_STREAMSIZE; } +int LZ4_sizeofStreamState(void) { return LZ4_STREAMSIZE; } int LZ4_resetStreamState(void* state, char* inputBuffer) { |