Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2004:
[Freeciv-Dev] Re: (PR#8704) Patch: Fix wrong error messages in Windows.
Home

[Freeciv-Dev] Re: (PR#8704) Patch: Fix wrong error messages in Windows.

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] Re: (PR#8704) Patch: Fix wrong error messages in Windows.
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Sun, 9 May 2004 20:26:09 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=8704 >

On Sat, 8 May 2004, Jason Short wrote:

>
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=8704 >
>
> Vasco Alexandre da Silva Costa wrote:
>
> > This new patch checks for FormatMessage failure and outputs an error
> > message with the error number. So even on Wine or weird systems you will
> > get some error reporting.
>
> I get this warning:
>
> support.c: In function `mystrerror':
> support.c:147: warning: int format, DWORD arg (arg 4)
>
> I'm not sure what a DWORD is but either you shouldn't use %d or you
> should cast it as an integer.

AFAIK DWORD is a 32-bit int.

---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa






[Prev in Thread] Current Thread [Next in Thread]