printf size_t results in a fatal warning in 32-bit debug builds
[7 Feb 13:12] Laurynas Biveinis
5.6.16 fails to build with -DWITH_DEBUG=ON because:
on Ubuntu Quantal, 32 bits:
on CentOS 6, 32 bits
cc1plus: warnings being treated as errors
make: *** [storage/
Code in question is
"count:%lu", page_size, verify.size());
"%lu" is not a portable way to print size_t.
Regression introduced in rev 5703.
How to repeat:
Configure an build on a 32 bit host with -DWITH_DEBUG=ON.
AFAIK there is no portable printf format specifier for size_t. One has to cast size_t to something wide, e.g. ib_uint64_t and use UINT64PF.