diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2023-01-12 04:14:18 +0200 |
---|---|---|
committer | Jia Tan <jiat0218@gmail.com> | 2023-02-03 21:10:06 +0800 |
commit | c47ecd6d3909d0d3ff48dfd6e2ee41e7c7130b94 (patch) | |
tree | 165c864ba678de187aa931a57874a4f1284f68d0 /src/liblzma/check/crc64_table_le.h | |
parent | Tests: Silence warnings from -Wsign-conversion. (diff) | |
download | xz-c47ecd6d3909d0d3ff48dfd6e2ee41e7c7130b94.tar.xz |
Tests: Fix warnings from clang --Wassign-enum.
Explicitly casting the integer to lzma_check silences the warning.
Since such an invalid value is needed in multiple tests, a constant
INVALID_LZMA_CHECK_ID was added to tests.h.
The use of 0x1000 for lzma_block.check wasn't optimal as if
the underlying type is a char then 0x1000 will be truncated to 0.
However, in these test cases the value is ignored, thus even with
such truncation the test would have passed.
Diffstat (limited to 'src/liblzma/check/crc64_table_le.h')
0 files changed, 0 insertions, 0 deletions