aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Barnes <rbarnes@umn.edu>2024-04-26 14:44:41 -0700
committerNick Terrell <nickrterrell@gmail.com>2024-04-29 09:19:24 -0400
commit97291fc5020a8994019ab76cf0cda83a9824374c (patch)
treecf36f831ddcc931c0b37babc8013fb6790d3f626
parentd7cb47036cb78b3681aee4725107381a1b69abfc (diff)
downloadzstd-upstream-dev.tar.gz
Increase x-compatibilityupstream-dev
-rw-r--r--lib/zstd.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/zstd.h b/lib/zstd.h
index e4c9ffc8..aa4ea23a 100644
--- a/lib/zstd.h
+++ b/lib/zstd.h
@@ -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);