aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/zstd/lib/common/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/contrib/zstd/lib/common/debug.c')
-rw-r--r--sys/contrib/zstd/lib/common/debug.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/contrib/zstd/lib/common/debug.c b/sys/contrib/zstd/lib/common/debug.c
index bb863c9ea616..9d0b7d229c14 100644
--- a/sys/contrib/zstd/lib/common/debug.c
+++ b/sys/contrib/zstd/lib/common/debug.c
@@ -1,7 +1,7 @@
/* ******************************************************************
* debug
* Part of FSE library
- * Copyright (c) Yann Collet, Facebook, Inc.
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
*
* You can contact the author at :
* - Source repository : https://github.com/Cyan4973/FiniteStateEntropy
@@ -21,4 +21,10 @@
#include "debug.h"
+#if !defined(ZSTD_LINUX_KERNEL) || (DEBUGLEVEL>=2)
+/* We only use this when DEBUGLEVEL>=2, but we get -Werror=pedantic errors if a
+ * translation unit is empty. So remove this from Linux kernel builds, but
+ * otherwise just leave it in.
+ */
int g_debuglevel = DEBUGLEVEL;
+#endif