# HG changeset patch # User Sebastien Jodogne # Date 1531478131 -7200 # Node ID fe4fe52f0c945e84373902fa84aeb049f7e1cef8 # Parent cb1b26a7db988777fe2a018923c7c0d227002f58 fix warnings diff -r cb1b26a7db98 -r fe4fe52f0c94 OrthancServer/ServerJobs/ArchiveJob.h --- a/OrthancServer/ServerJobs/ArchiveJob.h Fri Jul 13 12:34:53 2018 +0200 +++ b/OrthancServer/ServerJobs/ArchiveJob.h Fri Jul 13 12:35:31 2018 +0200 @@ -49,7 +49,6 @@ class ResourceIdentifiers; class ZipCommands; class ZipWriterIterator; - class ZipWriterIterator; boost::shared_ptr target_; ServerContext& context_; diff -r cb1b26a7db98 -r fe4fe52f0c94 UnitTestsSources/MultiThreadingTests.cpp --- a/UnitTestsSources/MultiThreadingTests.cpp Fri Jul 13 12:34:53 2018 +0200 +++ b/UnitTestsSources/MultiThreadingTests.cpp Fri Jul 13 12:35:31 2018 +0200 @@ -942,8 +942,9 @@ operation.reset(unserializer.UnserializeOperation(s)); // Make sure that we have indeed unserialized a log operation - ASSERT_THROW(dynamic_cast(*operation), std::bad_cast); - dynamic_cast(*operation); + Json::Value dummy; + ASSERT_THROW(dynamic_cast(*operation).Serialize(dummy), std::bad_cast); + dynamic_cast(*operation).Serialize(dummy); } } @@ -1288,8 +1289,9 @@ { operation.reset(unserializer.UnserializeOperation(s)); - ASSERT_THROW(dynamic_cast(*operation), std::bad_cast); - dynamic_cast(*operation); + Json::Value dummy; + ASSERT_THROW(dynamic_cast(*operation).Serialize(dummy), std::bad_cast); + dynamic_cast(*operation).Serialize(dummy); } // StorePeerOperation