subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1809540 - /subversion/trunk/subversion/libsvn_subr/lz4/lz4.c
Date Sun, 24 Sep 2017 19:25:37 GMT
Author: brane
Date: Sun Sep 24 19:25:37 2017
New Revision: 1809540

URL: http://svn.apache.org/viewvc?rev=1809540&view=rev
Log:
Silence some warnings in LZ4.

* subversion/libsvn_subr/lz4/lz4.c
  (LZ4_compress_fast_force,
   LZ4_compress_forceExtDict,
   LZ4_decompress_safe_forceExtDict,
   LZ4_uncompress,
   LZ4_uncompress_unknownOutputSize): Add prototype for the "hidden" debug
    functions and and ABI compatibility wrappers.
  (LZ4_sizeofState, LZ4_sizeofStreamState): Add missing (void) argument list.

Modified:
    subversion/trunk/subversion/libsvn_subr/lz4/lz4.c

Modified: subversion/trunk/subversion/libsvn_subr/lz4/lz4.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/lz4/lz4.c?rev=1809540&r1=1809539&r2=1809540&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/lz4/lz4.c (original)
+++ subversion/trunk/subversion/libsvn_subr/lz4/lz4.c Sun Sep 24 19:25:37 2017
@@ -94,6 +94,12 @@
 #include "lz4internal.h"
 /* see also "memory routines" below */
 
+/* Silence GCC's -Wmissing-prototypes warning. */
+int LZ4_compress_fast_force(const char*, char*, int, int, int);
+int LZ4_compress_forceExtDict (LZ4_stream_t*, const char*, char*, int);
+int LZ4_decompress_safe_forceExtDict(const char*, char*, int, int, const char*, int);
+int LZ4_uncompress (const char*, char*, int);
+int LZ4_uncompress_unknownOutputSize (const char*, char*, int, int);
 
 /*-************************************
 *  Compiler Options
@@ -397,7 +403,7 @@ typedef enum { full = 0, partial = 1 } e
 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; }
 
 
 /*-******************************
@@ -1423,7 +1429,7 @@ int LZ4_uncompress_unknownOutputSize (co
 
 /* Obsolete Streaming functions */
 
-int LZ4_sizeofStreamState() { return LZ4_STREAMSIZE; }
+int LZ4_sizeofStreamState(void) { return LZ4_STREAMSIZE; }
 
 static void LZ4_init(LZ4_stream_t* lz4ds, BYTE* base)
 {



Mime
View raw message