From: Vadim Zeitlin Date: Fri, 3 Jul 2009 12:16:20 +0000 (+0000) Subject: suppress harmless warning about unused variable X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/83c23edb02c271787db7f7e388a603a6b0a54f09 suppress harmless warning about unused variable git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/core/bitmap.cpp b/src/osx/core/bitmap.cpp index 5b45d7bdaa..15e8a233f0 100644 --- a/src/osx/core/bitmap.cpp +++ b/src/osx/core/bitmap.cpp @@ -496,8 +496,13 @@ IconRef wxBitmapRefData::GetIconRef() } } HUnlock( data ); + OSStatus err = SetIconFamilyData( iconFamily, dataType , data ); - wxASSERT_MSG( err == noErr , wxT("Error when adding bitmap") ); + if ( err != noErr ) + { + wxFAIL_MSG("Error when adding bitmap"); + } + DisposeHandle( data ); } else