Workaround for gcc overoptimization compiler bug.

This commit is contained in:
Alexander Smorkalov 2012-12-18 15:58:17 +04:00
parent 09be997ed8
commit dfa4b2fefa

View File

@ -5200,6 +5200,7 @@ void FileStorage::release()
string FileStorage::releaseAndGetString()
{
string buf;
buf.reserve(16); // HACK: Work around for compiler bug
if( fs.obj && fs.obj->outbuf )
icvClose(fs.obj, &buf);