diff options
| author | Xin LI <delphij@FreeBSD.org> | 2026-04-08 04:01:57 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2026-04-08 04:01:57 +0000 |
| commit | 7e509d50854e3f2ba38be3a5e640088c010333af (patch) | |
| tree | 27cdfc7312dd868fce2fcd8687ac61e3fe5bb434 /lib/common/debug.c | |
| parent | b3392d84da5bf2162baf937c77e0557f3fd8a52b (diff) | |
Diffstat (limited to 'lib/common/debug.c')
| -rw-r--r-- | lib/common/debug.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/common/debug.c b/lib/common/debug.c index bb863c9ea616..9d0b7d229c14 100644 --- a/lib/common/debug.c +++ b/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 |
