Add UNUSED_ATTR to ZSTD_storeSeq()

This commit is contained in:
Nick Terrell
2019-09-20 21:37:13 -07:00
parent 5dc0a1d659
commit 5cb7615f1f
2 changed files with 9 additions and 1 deletions
+7
View File
@@ -61,6 +61,13 @@
# define HINT_INLINE static INLINE_KEYWORD FORCE_INLINE_ATTR
#endif
/* UNUSED_ATTR tells the compiler it is okay if the function is unused. */
#if defined(__GNUC__)
# define UNUSED_ATTR __attribute__((unused))
#else
# define UNUSED_ATTR
#endif
/* force no inlining */
#ifdef _MSC_VER
# define FORCE_NOINLINE static __declspec(noinline)