Olly Betts
2024-10-29 18:40:01 UTC
Reply
Permalink../../tests/unittest.cc:962:49: warning: left shift count >= width of type [-Wshift-count-overflow]
962 | constexpr off_t high_offset = (off_t{1} << 32) + BLOCK_SIZE;
| ~~~~~~~~~^~~~~
../../tests/unittest.cc:962:49: error: right operand of shift expression ‘(1 << 32)’ is greater than or equal to the precision 32 of the left operand [-fpermissive]
962 | constexpr off_t high_offset = (off_t{1} << 32) + BLOCK_SIZE;
| ~~~~~~~~~~^~~~~~
Strange - LFS support should be enabled so off_t should be 64-bit...962 | constexpr off_t high_offset = (off_t{1} << 32) + BLOCK_SIZE;
| ~~~~~~~~~^~~~~
../../tests/unittest.cc:962:49: error: right operand of shift expression ‘(1 << 32)’ is greater than or equal to the precision 32 of the left operand [-fpermissive]
962 | constexpr off_t high_offset = (off_t{1} << 32) + BLOCK_SIZE;
| ~~~~~~~~~~^~~~~~
(This part of this testcase ought to be conditional and skipped for
platforms which only have a 32-bit off_t, but that shouldn't include any
Debian architectures.)
Cheers,
Olly