diff options
Diffstat (limited to 'thirdparty/zstd/common/debug.c')
-rw-r--r-- | thirdparty/zstd/common/debug.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/thirdparty/zstd/common/debug.c b/thirdparty/zstd/common/debug.c index ebf7bfccfa..9d0b7d229c 100644 --- a/thirdparty/zstd/common/debug.c +++ b/thirdparty/zstd/common/debug.c @@ -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 |