[Bug 15397] New: gdi32: path.c fails to build with gcc 4.2, -Werror -O3
wine-bugs at winehq.org
wine-bugs at winehq.org
Wed Sep 24 10:19:17 CDT 2008
http://bugs.winehq.org/show_bug.cgi?id=15397
Summary: gdi32: path.c fails to build with gcc 4.2, -Werror -O3
Product: Wine
Version: 1.1.5
Platform: PC
OS/Version: Linux
Status: NEW
Keywords: source
Severity: enhancement
Priority: P2
Component: gdi32
AssignedTo: wine-bugs at winehq.org
ReportedBy: austinenglish at gmail.com
ccache /usr/bin/gcc-4.2 -O3 -c -I. -I. -I../../include -I../../include
-I/usr/include/freetype2 -D__WINESRC__ -D_GDI32_ -D_REENTRANT -fPIC -Wall
-pipe -fno-strength-reduce -fno-strict-aliasing -Wdeclaration-after-statement
-Wwrite-strings -Wpointer-arith -Werror -o path.o path.c
cc1: warnings being treated as errors
path.c: In function ‘PATH_PolyPolygon’:
path.c:1079: warning: ‘startpt.y’ may be used uninitialized in this
function
path.c:1079: warning: ‘startpt.x’ may be used uninitialized in this
function
make: *** [path.o] Error 1
Relevant code:
BOOL PATH_PolyPolygon( DC *dc, const POINT* pts, const INT* counts,
UINT polygons )
{
GdiPath *pPath = &dc->path;
POINT pt, startpt;
UINT poly, i;
INT point;
/* Check that path is open */
if(pPath->state!=PATH_Open)
return FALSE;
for(i = 0, poly = 0; poly < polygons; poly++) {
for(point = 0; point < counts[poly]; point++, i++) {
pt = pts[i];
if(!LPtoDP(dc->hSelf, &pt, 1))
return FALSE;
if(point == 0) startpt = pt;
PATH_AddEntry(pPath, &pt, (point == 0) ? PT_MOVETO : PT_LINETO);
}
/* win98 adds an extra line to close the figure for some reason */
PATH_AddEntry(pPath, &startpt, PT_LINETO | PT_CLOSEFIGURE);
}
return TRUE;
}
--
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