diff options
author | Richard Barnes <rbarnes@umn.edu> | 2024-04-26 14:44:41 -0700 |
---|---|---|
committer | Nick Terrell <nickrterrell@gmail.com> | 2024-04-29 09:19:24 -0400 |
commit | 97291fc5020a8994019ab76cf0cda83a9824374c (patch) | |
tree | cf36f831ddcc931c0b37babc8013fb6790d3f626 | |
parent | d7cb47036cb78b3681aee4725107381a1b69abfc (diff) | |
download | zstd-upstream-dev.tar.gz |
Increase x-compatibilityupstream-dev
-rw-r--r-- | lib/zstd.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1802,11 +1802,15 @@ static #ifdef __GNUC__ __attribute__((__unused__)) #endif -// Disable diagnostic for C++ compatibility + +#if defined(__clang__) && __clang_major__ >= 5 #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" +#endif ZSTD_customMem const ZSTD_defaultCMem = { NULL, NULL, NULL }; /**< this constant defers to stdlib's functions */ +#if defined(__clang__) && __clang_major__ >= 5 #pragma clang diagnostic pop +#endif ZSTDLIB_STATIC_API ZSTD_CCtx* ZSTD_createCCtx_advanced(ZSTD_customMem customMem); ZSTDLIB_STATIC_API ZSTD_CStream* ZSTD_createCStream_advanced(ZSTD_customMem customMem); |