On Mon, Nov 28, 2011 at 11:56 AM, KOSAKI Motohiro <kosaki.motohiro / gmail.com> wrote: >> I can see the following warnings during mingw32 build. >> >> gc.c: In function 'gc_profile_result': >> gc.c:3581:4: warning: unknown conversion type character 'z' in format >> gc.c:3581:4: warning: unknown conversion type character 'z' in format >> gc.c:3581:4: warning: unknown conversion type character 'z' in format >> gc.c:3581:4: warning: format '%30.20f' expects type 'double', but argume= nt 5 has type 'unsigned int' >> gc.c:3581:4: warning: too many arguments for format > > Where does 'z' come from? > PRI?SIZE from ruby.h Anyhow, I think this is coming from printf implementation of MinGW: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D37768 And this: http://mingw-users.1079350.n2.nabble.com/quot-z-quot-format-in-printf-state= ments-td5804407.html Quoting: "On 05.12.2010 6:36, Simson Garfinkel wrote: > Hi. Another porting question. > > GCC on every platform I use has a %z format for size_t data. I even saw t= hat on mingw with gcc 3.5 when run as a cross-compiler. But the %z format s= eems missing from the 4.x gcc running on Windows-hosted GCC. What should I = do? > > bloom.c:221:5: warning: unknown conversion type character 'z' in format > CFLAGS=3D"-D_GNU_SOURCE=3D1" works for me. " --=20 Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup=E9ry