Workaround for gcc overoptimization compiler bug.
This commit is contained in:
parent
09be997ed8
commit
dfa4b2fefa
@ -5200,6 +5200,7 @@ void FileStorage::release()
|
|||||||
string FileStorage::releaseAndGetString()
|
string FileStorage::releaseAndGetString()
|
||||||
{
|
{
|
||||||
string buf;
|
string buf;
|
||||||
|
buf.reserve(16); // HACK: Work around for compiler bug
|
||||||
if( fs.obj && fs.obj->outbuf )
|
if( fs.obj && fs.obj->outbuf )
|
||||||
icvClose(fs.obj, &buf);
|
icvClose(fs.obj, &buf);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user