X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8601b2e15bf924d4be6b7843064028e514a71ec8..02a1dfbae942c883d8651e34dcfbc5153aabc56e:/src/unix/utilsx11.cpp?ds=inline 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;