From: inikep Date: Mon, 25 Jul 2016 19:17:45 +0000 (+0200) Subject: fixed gcc warning: always_inline function might not be inlinable X-Git-Tag: v0.8.0^2~44^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4178f5c28921cb526cea129a3967b25338636d4b;p=thirdparty%2Fzstd.git fixed gcc warning: always_inline function might not be inlinable --- diff --git a/lib/legacy/zstd_v07.c b/lib/legacy/zstd_v07.c index b6f604d23..62213997f 100644 --- a/lib/legacy/zstd_v07.c +++ b/lib/legacy/zstd_v07.c @@ -3891,7 +3891,7 @@ size_t ZSTDv07_decodeLiteralsBlock(ZSTDv07_DCtx* dctx, @return : nb bytes read from src, or an error code if it fails, testable with ZSTDv07_isError() */ -FORCE_INLINE size_t ZSTDv07_buildSeqTable(FSEv07_DTable* DTable, U32 type, U32 max, U32 maxLog, +size_t ZSTDv07_buildSeqTable(FSEv07_DTable* DTable, U32 type, U32 max, U32 maxLog, const void* src, size_t srcSize, const S16* defaultNorm, U32 defaultLog, U32 flagRepeatTable) { diff --git a/lib/legacy/zstd_v07.h b/lib/legacy/zstd_v07.h index caa1f0c16..162566cd3 100644 --- a/lib/legacy/zstd_v07.h +++ b/lib/legacy/zstd_v07.h @@ -131,17 +131,6 @@ ZSTDLIB_API size_t ZSTDv07_getFrameParams(ZSTDv07_frameParams* fparamsPtr, const -/* *************************************************************** -* Compiler specifics -*****************************************************************/ -/* ZSTDv07_DLL_EXPORT : -* Enable exporting of functions when building a Windows DLL */ -#if defined(_WIN32) && defined(ZSTDv07_DLL_EXPORT) && (ZSTDv07_DLL_EXPORT==1) -# define ZSTDLIB_API __declspec(dllexport) -#else -# define ZSTDLIB_API -#endif - /* ************************************* * Streaming functions