Suppress a number of warnings in no-assert builds (#17721)

* Supress a number of warnings about things used only in asserts

* Re-use a couple of variables instead of supressing the warning
This commit is contained in:
Ben Cohen
2018-07-04 07:15:14 -07:00
committed by GitHub
parent 0f1ac21909
commit 2b04e9f105
33 changed files with 44 additions and 2 deletions

View File

@@ -293,6 +293,7 @@ void FrontendInputsAndOutputs::setMainAndSupplementaryOutputs(
assert(outputFiles.size() == N && "Must have one main output per primary");
assert(supplementaryOutputs.size() == N &&
"Must have one set of supplementary outputs per primary");
(void)N;
unsigned i = 0;
for (auto &input : AllInputs) {