Complete.Org: Mailing Lists: Archives: freeciv-dev: January 1999:
[no subject]
Home

[no subject]

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "freeciv-dev@xxxxxxxxxxx" <freeciv-dev@xxxxxxxxxxx>
From: "Alexander Mai" <st002279@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 04 Jan 1999 22:05:59 +0100 (CET)
Reply-to: "Alexander Mai" <st002279@xxxxxxxxxxxxxxxxxxxxxx>

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 <=