Silence 2 C++ compiler warnings for builds with disabled assertions

This commit is contained in:
Martin Kinkelin 2021-02-07 23:55:21 +01:00
parent 93551108f5
commit 0c079fbdf9
2 changed files with 2 additions and 2 deletions

View file

@ -588,6 +588,7 @@ void DtoDeclareFunction(FuncDeclaration *fdecl, const bool willDefine) {
// this can e.g. happen for special __xtoHash member functions
Logger::println("Function hasn't had sema3 run yet, running it now.");
const bool semaSuccess = fdecl->functionSemantic3();
(void)semaSuccess;
assert(semaSuccess);
Module::runDeferredSemantic3();
}