From 4178f5c28921cb526cea129a3967b25338636d4b Mon Sep 17 00:00:00 2001 From: inikep Date: Mon, 25 Jul 2016 21:17:45 +0200 Subject: [PATCH] fixed gcc warning: always_inline function might not be inlinable --- lib/legacy/zstd_v07.c | 2 +- lib/legacy/zstd_v07.h | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/lib/legacy/zstd_v07.c b/lib/legacy/zstd_v07.c index b6f604d2..62213997 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 caa1f0c1..162566cd 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