gcc 4.9 build warnings (was: Re: arm-soc build: 2917 warnings 0 failures (arm-soc/v3.18-rc1-20-g06c0773))

Arnd Bergmann arnd at arndb.de
Thu Nov 6 03:56:27 PST 2014


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



More information about the linux-arm-kernel mailing list