[linux-kernel] Fix unused variable warnings with malloc, calloc, and free

dev
Nick Terrell 2020-09-23 12:54:10 -07:00
parent 8170e3ca6d
commit 978659d34f
1 changed files with 3 additions and 3 deletions

View File

@ -56,9 +56,9 @@ typedef int64_t S64;
#ifndef ZSTD_DEPS_MALLOC
#define ZSTD_DEPS_MALLOC
#define ZSTD_malloc(s) (NULL)
#define ZSTD_free(p) ((void)0)
#define ZSTD_calloc(n,s) (NULL)
#define ZSTD_malloc(s) ({ (void)(s); NULL; })
#define ZSTD_free(p) ((void)(p))
#define ZSTD_calloc(n,s) ({ (void)(n); (void)(s); NULL; })
#endif /* ZSTD_DEPS_MALLOC */
#endif /* ZSTD_DEPS_NEED_MALLOC */