On 32-bit system
0$ uname -nrmo
1odroid-hc1 4.14.187-odroidxu4 armv7l GNU/Linux
2$ lsb_release -ds
3Ubuntu 20.04.1 LTS
4$ clang --version
5clang version 10.0.0-4ubuntu1
6Target: armv7l-unknown-linux-gnueabihf
7Thread model: posix
8InstalledDir: /usr/bin
the clang fires the following warnings:
0 CXX policy/libbitcoin_common_a-feerate.o
1policy/feerate.cpp:14:20: warning: result of comparison of constant 9223372036854775807 with expression of type 'size_t' (aka 'unsigned int') is always true [-Wtautological-constant-out-of-range-compare]
2 assert(nBytes_ <= uint64_t(std::numeric_limits<int64_t>::max()));
3 ~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4/usr/include/assert.h:93:27: note: expanded from macro 'assert'
5 (static_cast <bool> (expr) \
6 ^~~~
7policy/feerate.cpp:25:20: warning: result of comparison of constant 9223372036854775807 with expression of type 'size_t' (aka 'unsigned int') is always true [-Wtautological-constant-out-of-range-compare]
8 assert(nBytes_ <= uint64_t(std::numeric_limits<int64_t>::max()));
9 ~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10/usr/include/assert.h:93:27: note: expanded from macro 'assert'
11 (static_cast <bool> (expr) \
12 ^~~~
132 warnings generated.
Fix is safe as https://github.com/bitcoin/bitcoin/blob/a57af897ec16976b28de05aa0b9c3f6a96d73ede/src/compat/assumptions.h#L55-L59