Avoid spurious uninitialized variable warning.

Last change introduced a new warning in optimized g++ build, fix it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2009-08-31 00:05:29 +00:00
parent 2e51fb3041
commit a4dac1907b

View File

@ -616,8 +616,11 @@ wxImage wxImage::ResampleBilinear(int width, int height) const
double srcpixy, srcpixy1, srcpixy2, dy, dy1;
double srcpixx, srcpixx1, srcpixx2, dx, dx1;
double r1, g1, b1, a1;
double r2, g2, b2, a2;
// initialize alpha values to avoid g++ warnings about possibly
// uninitialized variables
double r1, g1, b1, a1 = 0;
double r2, g2, b2, a2 = 0;
for ( int dsty = 0; dsty < height; dsty++ )
{