X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/37b83ca6394e9c805211b724ff6013b02d190a79..88594d02eb59a55ac85d3210a49d02918124617b:/src/common/imagbmp.cpp diff --git a/src/common/imagbmp.cpp b/src/common/imagbmp.cpp index 2142d1e59e..2b77f5aa93 100644 --- a/src/common/imagbmp.cpp +++ b/src/common/imagbmp.cpp @@ -195,12 +195,17 @@ bool wxICOHandler::SaveFile(wxImage *image, return FALSE; } wxUint32 m_Size = cStream.GetSize(); + + // wxCountingOutputStream::Ok() always returns TRUE for now and this + // "if" provokes VC++ warnings in optimized build +#if 0 if (!cStream.Ok()) { if (verbose) wxLogError( _("ICO: Error calculating size of DIB .") ); return FALSE; } +#endif // 0 m_offset = m_offset + sizeof(ICONDIRENTRY) ;