From: Vadim Zeitlin Date: Wed, 13 Feb 2002 16:41:26 +0000 (+0000) Subject: warning fix X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ac0141634d8686abef5812331592ce2f94419296 warning fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14175 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/x11/colour.cpp b/src/x11/colour.cpp index 347c6df140..cf8302dd51 100644 --- a/src/x11/colour.cpp +++ b/src/x11/colour.cpp @@ -82,11 +82,11 @@ unsigned short wxColourRefData::colMapAllocCounter[ 256 ] = void wxColourRefData::FreeColour() { +#if 0 if (m_colormap) { Colormap cm = (Colormap)m_colormap; -#if 0 GdkColormapPrivate *private_colormap = (GdkColormapPrivate*) m_colormap; if ((private_colormap->visual->type == GDK_VISUAL_GRAYSCALE) || (private_colormap->visual->type == GDK_VISUAL_PSEUDO_COLOR)) @@ -97,8 +97,8 @@ void wxColourRefData::FreeColour() if (colMapAllocCounter[ idx ] == 0) gdk_colormap_free_colors( m_colormap, &m_color, 1 ); } -#endif } +#endif } void wxColourRefData::AllocColour( WXColormap cmap )