# HG changeset patch # User Sebastien Jodogne # Date 1537426666 -7200 # Node ID 859a4950d48f99c18c774a2776a545ff16b974fd # Parent d4fd4614f2756a1efb5088d7297f27fa86c57b13 fix warnings diff -r d4fd4614f275 -r 859a4950d48f Core/JobsEngine/JobsRegistry.cpp --- 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_); diff -r d4fd4614f275 -r 859a4950d48f UnitTestsSources/ServerIndexTests.cpp --- 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(tmp["TotalDiskSize"].asString())); + boost::lexical_cast(tmp["TotalDiskSize"].asString())); ASSERT_EQ(dicom1.GetUncompressedSize() + json1.GetUncompressedSize(), - boost::lexical_cast(tmp["TotalUncompressedSize"].asString())); + boost::lexical_cast(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(tmp["TotalDiskSize"].asString())); + boost::lexical_cast(tmp["TotalDiskSize"].asString())); ASSERT_EQ(dicom2.GetUncompressedSize() + json2.GetUncompressedSize(), - boost::lexical_cast(tmp["TotalUncompressedSize"].asString())); + boost::lexical_cast(tmp["TotalUncompressedSize"].asString())); if (overwrite) {