X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7efaed4de44347f940dfd06ea20d0291b19f54ef..02a1dfbae942c883d8651e34dcfbc5153aabc56e:/src/unix/utilsx11.cpp?ds=inline diff --git a/src/unix/utilsx11.cpp b/src/unix/utilsx11.cpp index d09ae24992..073a4eb0d4 100644 --- a/src/unix/utilsx11.cpp +++ b/src/unix/utilsx11.cpp @@ -28,6 +28,7 @@ void wxSetIconsX11( WXDisplay* display, WXWindow window, const wxIconBundle& ib ) { +#if !wxUSE_NANOX size_t size = 0; size_t i, max = ib.m_icons.GetCount(); @@ -58,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; @@ -91,6 +98,7 @@ void wxSetIconsX11( WXDisplay* display, WXWindow window, (Window)window, net_wm_icon ); } +#endif } #endif