[apps/solver] Quiz assertion are supposed to run in release mode too

This commit is contained in:
Romain Goyet
2020-04-10 16:45:39 -04:00
committed by Ecco
parent 42d643aa7e
commit 5faa251c1f

View File

@@ -14,7 +14,6 @@ namespace Solver {
void addEquationWithText(EquationStore * equationStore, const char * text, Context * context) {
Ion::Storage::Record::ErrorStatus err = equationStore->addEmptyModel();
quiz_assert_print_if_failure(err == Ion::Storage::Record::ErrorStatus::None, text);
(void) err; // Silence warning in release mode
Ion::Storage::Record record = equationStore->recordAtIndex(equationStore->numberOfModels()-1);
Shared::ExpiringPointer<Equation> model = equationStore->modelForRecord(record);
model->setContent(text, context);