]> git.ipfire.org Git - thirdparty/zstd.git/commit
[contrib][linux] Fix -Wundef inside Linux kernel tree 2802/head
authorAlexander Lobakin <alobakin@pm.me>
Fri, 24 Sep 2021 19:50:37 +0000 (21:50 +0200)
committerAlexander Lobakin <alobakin@pm.me>
Sat, 25 Sep 2021 11:35:25 +0000 (13:35 +0200)
commit71526e6f296c4d31b21ba93862698405809ba2c6
treeea43560ea28a0f775d901f6d09956af995bc053a
parent32a8443b5c0235c7569fe29bfeec59b677665778
[contrib][linux] Fix -Wundef inside Linux kernel tree

Commit d7ef97a013b5
("[build] Fix oss-fuzz build with the dataflow sanitizer") broke
build inside Linux-kernel after 'import', as it no longer can
conditionally remove ZSTD_MEMORY_SANITIZER definition from
the #if DEF_A || DEF_B block. This emits -Wundef warning which
can be treated as error.
Split this preprocessor condition into two separate conditions
to fix this.

Fixes: d7ef97a013b5 ("[build] Fix oss-fuzz build with the dataflow sanitizer")
Signed-off-by: Alexander Lobakin <alobakin@pm.me>
lib/decompress/huf_decompress.c