]> git.ipfire.org Git - thirdparty/zstd.git/commit
Fix -Wunused-variable under FUZZING_BUILD_MODE... 2244/head
authorMitch Phillips <31459023+hctim@users.noreply.github.com>
Tue, 14 Jul 2020 15:49:43 +0000 (08:49 -0700)
committerMitch Phillips <31459023+hctim@users.noreply.github.com>
Tue, 14 Jul 2020 16:03:02 +0000 (09:03 -0700)
commit23b55d6b3e705794613111e9d343adee3c987e02
treeb7c011efe2560a5df1b1339cc91c234b1ad641c6
parentbd21e4b26460a707955e29572cd1110a550a6c5a
Fix -Wunused-variable under FUZZING_BUILD_MODE...

Fuzzing build modes (FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION) doesn't
necessarily imply that assert() is enabled, according to the manual.

When the current do-nothing is expanded under -Wunused-variable (-Wall),
it results in unused variables in some of the FUZZING_BUILD_MODE...
blocks.

This patch extends the do-nothing to avoid the unused variable.
lib/common/debug.h