mirror of
https://github.com/facebook/zstd.git
synced 2025-10-10 00:03:36 -04:00
Make zstd.h compatible with -Wzero-as-null-pointer-constant
This commit is contained in:
parent
fe67503f84
commit
d7cb47036c
@ -1802,7 +1802,11 @@ static
|
|||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
__attribute__((__unused__))
|
__attribute__((__unused__))
|
||||||
#endif
|
#endif
|
||||||
|
// Disable diagnostic for C++ compatibility
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant"
|
||||||
ZSTD_customMem const ZSTD_defaultCMem = { NULL, NULL, NULL }; /**< this constant defers to stdlib's functions */
|
ZSTD_customMem const ZSTD_defaultCMem = { NULL, NULL, NULL }; /**< this constant defers to stdlib's functions */
|
||||||
|
#pragma clang diagnostic pop
|
||||||
|
|
||||||
ZSTDLIB_STATIC_API ZSTD_CCtx* ZSTD_createCCtx_advanced(ZSTD_customMem customMem);
|
ZSTDLIB_STATIC_API ZSTD_CCtx* ZSTD_createCCtx_advanced(ZSTD_customMem customMem);
|
||||||
ZSTDLIB_STATIC_API ZSTD_CStream* ZSTD_createCStream_advanced(ZSTD_customMem customMem);
|
ZSTDLIB_STATIC_API ZSTD_CStream* ZSTD_createCStream_advanced(ZSTD_customMem customMem);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user