mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 00:20:40 +03:00
Silence unused variable warning when assert is disabled. [NFC] (#4446)
This commit is contained in:
parent
d4f2bed3a4
commit
ed429d4524
1 changed files with 1 additions and 1 deletions
|
@ -1188,7 +1188,7 @@ LLConstant *DtoConstExpInit(const Loc &loc, Type *targetType, Expression *exp) {
|
|||
val = llvm::ConstantArray::get(at, elements);
|
||||
}
|
||||
|
||||
(void)numTotalVals;
|
||||
(void)numTotalVals; (void) product; // Silence unused variable warning when assert is disabled.
|
||||
assert(product == numTotalVals);
|
||||
return val;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue