msvcrt: scanf fix a typo
David Laight
david at l8s.co.uk
Sun Sep 21 16:03:50 CDT 2008
On Fri, Sep 19, 2008 at 03:51:00PM -0700, Dan Kegel wrote:
> Here's the gcc error:
> > scanf.c:66: warning: unknown conversion type character `P' in format
>
> I'm not a programmer, but I play one on TV. And here's what I
> came up with in five minutes of typing and not enough thinking:
>
> That particular error depends on gcc knowing intimate details of
> sscanf. Unless we teach gcc about the particular sscanf we're
> implementing, it's likely to give false errors.
For the tests, the compile time error can be avoided by using
a non-constant format string.
Quite possibly adding a global variable whose value is a
always zero to the format string is enough.
David
--
David Laight: david at l8s.co.uk
More information about the wine-devel
mailing list