Mercurial > hg > orthanc
diff OrthancServer/Sources/Database/Compatibility/ICreateInstance.cpp @ 4121:7c9ff821063a framework-lgpl
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 07 Jul 2020 19:54:53 +0200 |
parents | 05b8fd21089c |
children | 50b0c69b653a |
line wrap: on
line diff
--- a/OrthancServer/Sources/Database/Compatibility/ICreateInstance.cpp Tue Jul 07 19:37:25 2020 +0200 +++ b/OrthancServer/Sources/Database/Compatibility/ICreateInstance.cpp Tue Jul 07 19:54:53 2020 +0200 @@ -83,6 +83,7 @@ bool ok = (database.LookupResource(result.patientId_, dummy, hashPatient) && database.LookupResource(result.studyId_, dummy, hashStudy)); + (void) ok; // Remove warning about unused variable in release builds assert(ok); } else if (database.LookupResource(result.studyId_, dummy, hashStudy)) @@ -93,6 +94,7 @@ result.isNewSeries_ = true; bool ok = database.LookupResource(result.patientId_, dummy, hashPatient); + (void) ok; // Remove warning about unused variable in release builds assert(ok); } else if (database.LookupResource(result.patientId_, dummy, hashPatient))