mirror_zfs/module/zstd/lib/compress
Brian Behlendorf 1bf3abc634
Silence unused-but-set-variable warnings
Clang 13.0.0 added support for `Wunused-but-set-parameter` and
`-Wunused-but-set-variable` which correctly detects two unused
variables in zstd resulting in a build failure.  This commit
annotates these instances accordingly.

  https://releases.llvm.org/13.0.1/tools/clang/docs/ReleaseNotes.html#id6

In FSE_createCTable(), malloc() is intentionally defined as NULL when
compiled in the kernel so the variable is unused.

  zstd/lib/compress/fse_compress.c:307:12: error: variable 'size'
  set but not used [-Werror,-Wunused-but-set-variable]

Additionally, in ZSTD_seqDecompressedSize() the assert is compiled
out similarly resulting in an unused variable.

  zstd/lib/compress/zstd_compress_superblock.c:412:12: error: variable
  'litLengthSum' set but not used [-Werror,-Wunused-but-set-variable]

Reviewed-by: Rich Ercolani <rincebrain@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #13382
2022-04-29 14:21:11 -07:00
..
fse_compress.c Silence unused-but-set-variable warnings 2022-04-29 14:21:11 -07:00
hist.c Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
hist.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
huf_compress.c Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_compress_internal.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_compress_literals.c Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_compress_literals.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_compress_sequences.c Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_compress_sequences.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_compress_superblock.c Silence unused-but-set-variable warnings 2022-04-29 14:21:11 -07:00
zstd_compress_superblock.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_compress.c Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_cwksp.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_double_fast.c Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_double_fast.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_fast.c Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_fast.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_lazy.c Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_lazy.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_ldm.c Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_ldm.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_opt.c Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00
zstd_opt.h Explode zstd 1.4.5 into separate upstream files 2022-03-01 13:55:12 -08:00