dlls/gdi32/freetype.c: avoid compiler warning in WineEngGetGlyphOutline()
Gerald Pfeifer
gerald at pfeifer.com
Sun Oct 14 06:52:00 CDT 2007
This is not perfect, but without this change some versions of GCC will
issue the following warning:
freetype.c:3722: warning: 'mult' might be used uninitialized in this function
And alternative patch, which I'd be happy to provide if you prefer, is
to initialize mult in this case.
Gerald
ChangeLog:
Avoid unitialized variable compiler warning in WineEngGetGlyphOutline().
Index: freetype.c
===================================================================
RCS file: /home/wine/wine/dlls/gdi32/freetype.c,v
retrieving revision 1.52
diff -u -3 -p -u -p -r1.52 freetype.c
--- freetype.c 5 Oct 2007 09:56:47 -0000 1.52
+++ freetype.c 14 Oct 2007 11:49:13 -0000
@@ -3766,10 +3766,9 @@ DWORD WineEngGetGlyphOutline(GdiFont *in
mult = 16;
else if(format == GGO_GRAY8_BITMAP)
mult = 64;
- else if(format == WINE_GGO_GRAY16_BITMAP)
+ else /* format == WINE_GGO_GRAY16_BITMAP */
return needed;
- else
- assert(0);
+
break;
}
default:
More information about the wine-patches
mailing list