http://bugs.winehq.com/show_bug.cgi?id=778
*** shadow/778 Sun Jun 9 15:24:39 2002 --- shadow/778.tmp.26524 Sun Jun 9 15:24:39 2002 *************** *** 0 **** --- 1,50 ---- + +============================================================================+ + | Compiler warnings for wine-20020605 | + +----------------------------------------------------------------------------+ + | Bug #: 778 Product: Wine | + | Status: UNCONFIRMED Version: unspecified | + | Resolution: Platform: | + | Severity: normal OS/Version: All | + | Priority: P1 Component: wine-binary | + +----------------------------------------------------------------------------+ + | Assigned To: wine-bugs@winehq.com | + | Reported By: tenthumbs@cybernex.net | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | Milestone: TargetMilestone: --- | + | URL: | + +============================================================================+ + | DESCRIPTION | + I used gcc -W and these warnigns turned up. Most of them are of the form + unsigned foo; + if (foo < 0) report _error; + Gcc is "smart" and knows unsigned values can never be negative so the test is + false, the error clause becomes unreachable code and gcc eliminates it when + optimizing. Not good. + + I'm sure the component is wrong so someone fix it. + + The list: + files/file.c:135: warning: unsigned value < 0 is always 0 + dlls/ntdll/reg.c:229: warning: unsigned value < 0 is always 0 + dlls/advapi32/crypt.c:845: warning: unsigned value < 0 is always 0 + dlls/advapi32/crypt.c:1132: warning: unsigned value < 0 is always 0 + dlls/gdi/freetype.c:712: warning: unsigned value < 0 is always 0 + controls/button.c:201: warning: unsigned value < 0 is always 0 + dlls/x11drv/winpos.c:1405: warning: unsigned value >= 0 is always 1 + dlls/comctl32/listview.c:1835: warning: unsigned value >= 0 is always 1 + dlls/comctl32/listview.c:1838: warning: unsigned value >= 0 is always 1 + dlls/ole32/hglobalstream.c:614: warning: unsigned value < 0 is always 0 + dlls/ole32/oleobj.c:291: warning: unsigned value < 0 is always 0 + dlls/ole32/oleobj.c:650: warning: unsigned value < 0 is always 0 + dlls/shlwapi/ordinal.c:1163: warning: unsigned value < 0 is always 0 + dlls/shlwapi/ordinal.c:2458: warning: unsigned value < 0 is always 0 + dlls/shlwapi/ordinal.c:2473: warning: unsigned value < 0 is always 0 + dlls/shlwapi/shlwapi_main.c:63: warning: unsigned value >= 0 is always 1 + dlls/oleaut32/typelib.c:4586: warning: unsigned value >= 0 is always 1 + dlls/oleaut32/typelib.c:4819: warning: unsigned value >= 0 is always 1 + dlls/oleaut32/variant.c:3935: warning: unsigned value < 0 is always 0 + dlls/oleaut32/variant.c:4035: warning: unsigned value < 0 is always 0 + dlls/oleaut32/variant.c:4647: warning: unsigned value < 0 is always 0 + dlls/wininet/internet.c:855: warning: unsigned value < 0 is always 0 + dlls/wininet/internet.c:903: warning: unsigned value < 0 is always 0 \ No newline at end of file