1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2024-11-29 01:33:46 +00:00

Workaround for a bug in gcc. It's fixed in gcc 7.

This commit is contained in:
King_DuckZ 2017-08-20 04:45:04 +01:00
parent 0770ca704b
commit 6df2a4db43

View file

@ -115,6 +115,16 @@ namespace mchlib {
throw e;
}
}
catch (...) { //workaround for bug in gcc 5 and 6, see:
//https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66145
if (parIgnoreErrors) {
it->unreadable = true;
it->hash = TigerHash {};
}
else {
throw;
}
}
}
#if defined(INDEXER_VERBOSE)