Fix new warning in dlls/gdi/tests/bitmap.c
Gerald Pfeifer
gerald at pfeifer.com
Fri Apr 7 00:52:22 CDT 2006
The following patch addresses a new warning
bitmap.c:222: warning: 'words' might be used uninitialized in this function
caused by recent changes in dlls/gdi/tests, at least for some versions of
GCC.
Gerald
ChangeLog:
Also initialize a variable in the failure case.
Index: bitmap.c
===================================================================
RCS file: /home/wine/wine/dlls/gdi/tests/bitmap.c,v
retrieving revision 1.13
diff -u -3 -p -r1.13 bitmap.c
--- bitmap.c 5 Apr 2006 18:34:01 -0000 1.13
+++ bitmap.c 7 Apr 2006 05:44:19 -0000
@@ -232,6 +232,7 @@ static INT DIB_GetWidthBytes( int width,
case 32: words = width; break;
default:
+ words=0;
trace("Unknown depth %d, please report.\n", bpp );
assert(0);
break;
More information about the wine-patches
mailing list