[build/simulator] NDEBUG flag in release mode

This way, asserts are not performed on simulator platforms
This commit is contained in:
Léa Saviot
2020-04-08 10:06:59 +02:00
committed by EmilieNumworks
parent 4a9bfca1f6
commit 2ed354710f
14 changed files with 24 additions and 29 deletions

View File

@@ -14,7 +14,7 @@ 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 DEBUG=0
(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);