X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8601b2e15bf924d4be6b7843064028e514a71ec8..4b04699b670b4ab4632229fa0264d154acd3bec1:/src/unix/utilsx11.cpp diff --git a/src/unix/utilsx11.cpp b/src/unix/utilsx11.cpp index 360d59df7e..073a4eb0d4 100644 --- a/src/unix/utilsx11.cpp +++ b/src/unix/utilsx11.cpp @@ -59,6 +59,12 @@ void wxSetIconsX11( WXDisplay* display, WXWindow window, gMask = image.GetMaskGreen(); bMask = image.GetMaskBlue(); } + else // no mask, but still init the variables to avoid warnings + { + rMask = + gMask = + bMask = 0; + } *ptr++ = width; *ptr++ = height;