[En-Nut-Discussion] H8/300 Question: Print Format Specifier For size_t

Harald Kipp harald.kipp at egnite.de
Wed Mar 17 21:03:39 CET 2004


Jan,

At 19:28 17.03.2004 +0100, you wrote:

>Yes, size_t is 32 bit but when I tried to compile the original code
>using h8300-elf-gcc (or arm-elf-gcc) I got following warning:
>
>httpserv.c:442: warning: unsigned int format, size_t arg (arg 3)

I understand. Or more exactly, I understood your
problem, but I do not understand the warning.


>BTW. Maybe we should use type casting instead of defines in such places?

Sorry, but not a good idea. This would produce
extra code for 8 bit machines.

If I remember correctly, GCC allows to overwrite
size_t. But I have to check.

Harald




More information about the En-Nut-Discussion mailing list