On Tuesday 22 December 2009, Freddie Chopin wrote: > When building standard configuration on Windows (MSYS + MinGW): > > > libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../src > > -I../../src -g -O2 -D__USE_MINGW_ANSI_STDIO -Wall -Wstrict-prototypes > > -Wformat-security -Wextra -Wno-unused-parameter -Wbad-function-cast > > -Wcast-align -Wredundant-decls -Werror -MT target.lo -MD -MP -MF > > .deps/target.Tpo -c target.c -o target.o > > target.c: In function `handle_dump_image_command': > > target.c:2492: warning: size_t format, ssize_t arg (arg 3) > > make[5]: *** [target.lo] Error 1 > > This is about: > > > command_print(CMD_CTX, > > "dumped %zu bytes in %fs (%0.3f kb/s)", > > fileio.size, > > duration_elapsed(&bench), duration_kbps(&bench, > > fileio.size)); > > Casting the first "data" parameter to (unsigned int) fixes that, but I > don't see that as a good solution, so it should be fixed by someone > better than me.
Curious. Cygwin and Linux builds don't have that particular issue; I wonder why not? A better fix would be to use "%zd" (for ssize_t, "%d" signed) not "%zu" (for size_t, "%u" unsigned). Can you submit a patch for all these build problems? - Dave _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development