oleaut32: Correct the printf placeholder types.

Danny Rawlins monster.romster at gmail.com
Mon Dec 29 15:03:48 CST 2008

Austin English wrote:
> On Mon, Dec 29, 2008 at 2:49 PM, Danny Rawlins
> <monster.romster at gmail.com> wrote:
>> Fix between unsigned and signed types this is my first wine patch but
>> you may already know me in irc as <Romster>.
>> Also I don't find any -W compiler option to warn against incorrect
>> placeholders like using a int for a string.
>> Thanks to <arethusa> for help, I am still learning C but have patched
>> many programs.
>> Regards,
>>    Danny Rawlins
> I think you want to use:
> CFLAGS="-Wsign-compare"
Tired that i even tried this.
gcc -Wall -Wextra -Wfloat-equal -Wwrite-strings -Wsign-compare
-Wno-pointer-sign -ansi -pedantic bar.c -o bar

with test data:
#include <stdio.h>
int main()
    char c = '$';
    printf("%u\n", c);
    return 0;

As what madewokherd, arethusa, nanonyme, and myself (Romster) tried in
#winehq-social various different short programs not one gave a warning.
I'm using gcc-4.3.2

P.S. I'm on IRC or should this of been sent to wine-devil than
wine-patches. Although that would be considered cross posting.

Danny Rawlins

More information about the wine-patches mailing list