msvcrt: scanf fix a typo

Austin English austinenglish at gmail.com
Fri Sep 19 19:54:11 CDT 2008


On Fri, Sep 19, 2008 at 5:51 PM, Dan Kegel <dank at kegel.com> 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.
>
> It could be that the line
>
> #include <stdio.h>
>
> at the top of that file is introducing a conflict.
>
> See
> http://gcc.gnu.org/onlinedocs/gcc-4.3.2/gcc/Function-Attributes.html#Function-Attributes
> for the function attributes used to teach gcc about scanf-like format arguments.
>
> This may be an example of the problem Juan was anticipating, where
> people rush to provide fixes to problems that they don't fully
> understand, just to try to get rid of gcc warnings :-(
> - Dan
>

Point taken. I'll just file a bug and let someone who knows what
they're doing take a look at it.

- Austin



More information about the wine-devel mailing list