mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-29 14:40:40 +03:00
Silence 2 C++ compiler warnings for builds with disabled assertions
This commit is contained in:
parent
93551108f5
commit
0c079fbdf9
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue