mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-30 23:20: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
|
// this can e.g. happen for special __xtoHash member functions
|
||||||
Logger::println("Function hasn't had sema3 run yet, running it now.");
|
Logger::println("Function hasn't had sema3 run yet, running it now.");
|
||||||
const bool semaSuccess = fdecl->functionSemantic3();
|
const bool semaSuccess = fdecl->functionSemantic3();
|
||||||
|
(void)semaSuccess;
|
||||||
assert(semaSuccess);
|
assert(semaSuccess);
|
||||||
Module::runDeferredSemantic3();
|
Module::runDeferredSemantic3();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1093,10 +1093,9 @@ public:
|
||||||
// evaluate the base expression but delay getting its pointer until the
|
// evaluate the base expression but delay getting its pointer until the
|
||||||
// potential bounds have been evaluated
|
// potential bounds have been evaluated
|
||||||
DValue *v = toElem(e->e1);
|
DValue *v = toElem(e->e1);
|
||||||
auto getBasePointer = [e, v, etype]() {
|
auto getBasePointer = [v, etype]() {
|
||||||
if (etype->ty == Tpointer) {
|
if (etype->ty == Tpointer) {
|
||||||
// pointer slicing
|
// pointer slicing
|
||||||
assert(e->lwr);
|
|
||||||
return DtoRVal(v);
|
return DtoRVal(v);
|
||||||
} else {
|
} else {
|
||||||
// array slice
|
// array slice
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue