# HG changeset patch
# User Sebastien Jodogne <s.jodogne@gmail.com>
# Date 1594144493 -7200
# Node ID 7c9ff821063aa431c55686415a7faf3be399b223
# Parent  304842a0d152764fc246521eae427c3698bb27b4
fix

diff -r 304842a0d152 -r 7c9ff821063a OrthancFramework/Sources/JobsEngine/JobsRegistry.cpp
--- a/OrthancFramework/Sources/JobsEngine/JobsRegistry.cpp	Tue Jul 07 19:37:25 2020 +0200
+++ b/OrthancFramework/Sources/JobsEngine/JobsRegistry.cpp	Tue Jul 07 19:54:53 2020 +0200
@@ -1039,6 +1039,7 @@
         }
       }
 
+      (void) ok;  // Remove warning about unused variable in release builds
       assert(ok);
 
       found->second->SetState(JobState_Pending);
diff -r 304842a0d152 -r 7c9ff821063a OrthancServer/CMakeLists.txt
--- a/OrthancServer/CMakeLists.txt	Tue Jul 07 19:37:25 2020 +0200
+++ b/OrthancServer/CMakeLists.txt	Tue Jul 07 19:54:53 2020 +0200
@@ -195,7 +195,7 @@
 set(ORTHANC_EMBEDDED_FILES
   CONFIGURATION_SAMPLE         ${CMAKE_SOURCE_DIR}/Resources/Configuration.json
   DICOM_CONFORMANCE_STATEMENT  ${CMAKE_SOURCE_DIR}/Resources/DicomConformanceStatement.txt
-  FONT_UBUNTU_MONO_BOLD_16     ${CMAKE_SOURCE_DIR}/../OrthancFramework/Resources/Fonts/UbuntuMonoBold-16.json
+  FONT_UBUNTU_MONO_BOLD_16     ${CMAKE_SOURCE_DIR}/Resources/Fonts/UbuntuMonoBold-16.json
   LUA_TOOLBOX                  ${CMAKE_SOURCE_DIR}/Resources/Toolbox.lua
   PREPARE_DATABASE             ${CMAKE_SOURCE_DIR}/Sources/Database/PrepareDatabase.sql
   UPGRADE_DATABASE_3_TO_4      ${CMAKE_SOURCE_DIR}/Sources/Database/Upgrade3To4.sql
diff -r 304842a0d152 -r 7c9ff821063a OrthancServer/Sources/Database/Compatibility/ICreateInstance.cpp
--- 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))
diff -r 304842a0d152 -r 7c9ff821063a OrthancServer/Sources/ServerIndex.cpp
--- a/OrthancServer/Sources/ServerIndex.cpp	Tue Jul 07 19:37:25 2020 +0200
+++ b/OrthancServer/Sources/ServerIndex.cpp	Tue Jul 07 19:54:53 2020 +0200
@@ -1506,6 +1506,7 @@
       if (!done)
       {
         bool ok = db_.LookupParent(currentId, currentId);
+        (void) ok;  // Remove warning about unused variable in release builds
         assert(ok);
       }
     }