On Thursday 06 November 2014 12:49:22 Thierry Reding wrote:
GCC complains about the format specifier being wrong. %zu/%zd are the correct specifiers for variables of type size_t/ssize_t, so wherever a size_t or ssize_t is used as parameter it should have a corresponding %zu or %zd specifier.
Why not just fix it properly instead of mucking about with the size_t typedef?
Yes, but where are %zu and %zd implemented in gcc? I've looked but couldn't find it. For all I can tell is that gcc's own interpretation of %z doesn't match its definition of __SIZE_TYPE__ when building for bare-metal.
Arnd