gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: format specifier warning on wchar_t


From: Pawel Kot
Subject: Re: format specifier warning on wchar_t
Date: Fri, 13 Jan 2006 22:39:13 +0100

Hi,

On 1/12/06, Dan Oetting <address@hidden> wrote:
> This line produces a warning because wc is type wchar_t and %lx is for
> printing longs which may be a different size.
>  sprintf(dest + (o_len << 2), "%04lx", wc);

What compiler do you use and what warning do you get? With:
gcc version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
there is no warning for this particular thing.

take care,
pkot
--
Pawel Kot
http://www.gnokii.org/




reply via email to

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