http://bugs.winehq.org/show_bug.cgi?id=16749
Summary: kernel32/tests: wrong char type Product: Wine Version: 1.1.12 Platform: Macintosh OS/Version: Linux Status: NEW Keywords: source Severity: minor Priority: P2 Component: build-env AssignedTo: wine-bugs@winehq.org ReportedBy: austinenglish@gmail.com
gcc -c -I. -I. -I../../../include -I../../../include -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wtype-limits -Wpointer-arith -g -O2 -o codepage.o codepage.c codepage.c: In function ‘test_string_conversion’: codepage.c:228: warning: comparison is always false due to limited range of data type codepage.c:244: warning: comparison is always false due to limited range of data type
changing mbc to be a signed char rather than char seems the obvious solution, but that breaks things further: codepage.c:226: warning: pointer targets in passing argument 5 of ‘WideCharToMultiByte’ differ in signedness codepage.c:233: warning: pointer targets in passing argument 5 of ‘WideCharToMultiByte’ differ in signedness codepage.c:242: warning: pointer targets in passing argument 5 of ‘WideCharToMultiByte’ differ in signedness codepage.c:251: warning: pointer targets in passing argument 5 of ‘WideCharToMultiByte’ differ in signedness codepage.c:262: warning: pointer targets in passing argument 5 of ‘WideCharToMultiByte’ differ in signedness codepage.c:328: warning: pointer targets in passing argument 5 of ‘WideCharToMultiByte’ differ in signedness