]> git.ipfire.org Git - thirdparty/zstd.git/commit
[debug] Don't define g_debuglevel in the kernel
authorNick Terrell <terrelln@meta.com>
Fri, 17 Nov 2023 01:15:25 +0000 (17:15 -0800)
committerNick Terrell <nickrterrell@gmail.com>
Fri, 17 Nov 2023 17:54:10 +0000 (09:54 -0800)
commite122fcbf58e142e837a2bba382ef7ca4f5eaa13b
treef067b79fd5baf86de8d13384f2fb7ec612cea6a0
parentc2d470581eaee3dc9f747dbab16d1fc0816f94aa
[debug] Don't define g_debuglevel in the kernel

We only use this constant when `DEBUGLEVEL>=2`, but we get
-Werror=pedantic errors for empty translation units, so still define it
except in kernel environments.

Backport from the kernel:

https://lore.kernel.org/lkml/20230616144400.172683-1-ben.dooks@codethink.co.uk/
lib/common/debug.c