Move deprecated annotation before static to allow C++ compilation for clang

This fixes last 2 instances of https://github.com/facebook/zstd/issues/3250
This commit is contained in:
Daniel Kutenin
2022-12-23 12:07:31 +00:00
committed by GitHub
parent 089b2797e3
commit 48f4aa7307
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -461,8 +461,8 @@ ZDICTLIB_STATIC_API size_t ZDICT_trainFromBuffer_legacy(
# endif
#endif /* ZDICT_DISABLE_DEPRECATE_WARNINGS */
ZDICTLIB_STATIC_API
ZDICT_DEPRECATED("use ZDICT_finalizeDictionary() instead")
ZDICTLIB_STATIC_API
size_t ZDICT_addEntropyTablesFromBuffer(void* dictBuffer, size_t dictContentSize, size_t dictBufferCapacity,
const void* samplesBuffer, const size_t* samplesSizes, unsigned nbSamples);