[Bug 15397] gdi32: path.c fails to build with gcc 4.2, -Werror -O3

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Sep 25 04:08:09 CDT 2008


http://bugs.winehq.org/show_bug.cgi?id=15397


Andrey Turkin <andrey.turkin at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrey.turkin at gmail.com




--- Comment #2 from Andrey Turkin <andrey.turkin at gmail.com>  2008-09-25 04:08:09 ---
I think better way would be do nothing if counts[poly]==0 as there aren't any
points to do anything useful. Also, startpt definition could be moved into a
loop where it belong.
Something like this:
   for(i = 0, poly = 0; poly < polygons; poly++) 
     if (counts[poly]>0) {
       POINT startpt;
       for(point = 0; point < counts[poly]; point++, i++) {
        ...
       }
       PATH_AddEntry(pPath, &startpt, PT_LINETO | PT_CLOSEFIGURE);
     }


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list