Updates to fix Watcom C/C++ 11.0 compiler warning problems. Now compiles
clean with this compiler. Hopefully I did this without breaking other compilers. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9967 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -62,7 +62,7 @@ wxPalette::~wxPalette(void)
|
||||
// FreeResource(TRUE);
|
||||
}
|
||||
|
||||
bool wxPalette::FreeResource(bool force)
|
||||
bool wxPalette::FreeResource(bool WXUNUSED(force))
|
||||
{
|
||||
if ( M_PALETTEDATA && M_PALETTEDATA->m_hPalette)
|
||||
{
|
||||
@@ -78,7 +78,7 @@ bool wxPalette::Create(int n, const unsigned char *red, const unsigned char *gre
|
||||
#ifdef __WXWINE__
|
||||
|
||||
return (FALSE);
|
||||
|
||||
|
||||
#else
|
||||
|
||||
m_refData = new wxPaletteRefData;
|
||||
@@ -102,7 +102,7 @@ bool wxPalette::Create(int n, const unsigned char *red, const unsigned char *gre
|
||||
M_PALETTEDATA->m_hPalette = (WXHPALETTE) CreatePalette((LPLOGPALETTE)npPal);
|
||||
LocalFree((HANDLE)npPal);
|
||||
return TRUE;
|
||||
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user