[no subject]
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Hello,
I just built freeciv 1.7.2 again under OS/2 (XFree86). The resulting
binaries will be posted on my website (I will submit the URL later).
Nevertheless I can't resist to repor the only warning in a very clean
build process (using even -Wall on gcc !)
common/unit.c: In function `string_center':
common/unit.c:139: warning: field width is not type int (arg 6)
===>
sprintf(buf, "%*s%s%*s", left, "", s, size - strlen(s) - left, "");
I think that (size - strlen(s) - left) is casted to typeof(strlen)=size_t
which is is not necessarily int (but e.g. unsigned long).
Bye,
------------------------------------------------------------------
Alexander Mai
st002279@xxxxxxxxxxxxxxxxxxxxxx
Alexander.Mai@xxxxxxxxxxxxxxxxxxxxxx
------------------------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [no subject],
Alexander Mai <=
|
|