changeset 2828:859a4950d48f

fix warnings
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 20 Sep 2018 08:57:46 +0200
parents d4fd4614f275
children 61fdb06e389a
files Core/JobsEngine/JobsRegistry.cpp UnitTestsSources/ServerIndexTests.cpp
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Core/JobsEngine/JobsRegistry.cpp	Wed Sep 19 21:10:49 2018 +0200
+++ b/Core/JobsEngine/JobsRegistry.cpp	Thu Sep 20 08:57:46 2018 +0200
@@ -691,7 +691,7 @@
     std::string id;
     Submit(id, job, priority);
 
-    JobState state;
+    JobState state = JobState_Pending;
 
     {
       boost::mutex::scoped_lock lock(mutex_);
--- a/UnitTestsSources/ServerIndexTests.cpp	Wed Sep 19 21:10:49 2018 +0200
+++ b/UnitTestsSources/ServerIndexTests.cpp	Thu Sep 20 08:57:46 2018 +0200
@@ -897,9 +897,9 @@
     context.GetIndex().ComputeStatistics(tmp);
     ASSERT_EQ(1, tmp["CountInstances"].asInt());
     ASSERT_EQ(dicom1.GetCompressedSize() + json1.GetCompressedSize(),
-              boost::lexical_cast<int>(tmp["TotalDiskSize"].asString()));
+              boost::lexical_cast<size_t>(tmp["TotalDiskSize"].asString()));
     ASSERT_EQ(dicom1.GetUncompressedSize() + json1.GetUncompressedSize(),
-              boost::lexical_cast<int>(tmp["TotalUncompressedSize"].asString()));
+              boost::lexical_cast<size_t>(tmp["TotalUncompressedSize"].asString()));
 
     context.ReadDicomAsJson(tmp, id);
     ASSERT_EQ("name", tmp["0010,0010"]["Value"].asString());
@@ -932,9 +932,9 @@
     context.GetIndex().ComputeStatistics(tmp);
     ASSERT_EQ(1, tmp["CountInstances"].asInt());
     ASSERT_EQ(dicom2.GetCompressedSize() + json2.GetCompressedSize(),
-              boost::lexical_cast<int>(tmp["TotalDiskSize"].asString()));
+              boost::lexical_cast<size_t>(tmp["TotalDiskSize"].asString()));
     ASSERT_EQ(dicom2.GetUncompressedSize() + json2.GetUncompressedSize(),
-              boost::lexical_cast<int>(tmp["TotalUncompressedSize"].asString()));
+              boost::lexical_cast<size_t>(tmp["TotalUncompressedSize"].asString()));
 
     if (overwrite)
     {