diff options
author | Joe George <joe@zeroc.com> | 2015-12-10 10:42:00 -0500 |
---|---|---|
committer | Joe George <joe@zeroc.com> | 2015-12-10 10:42:00 -0500 |
commit | 219451f2a88cb3e774b973d94a14c43326a6b55f (patch) | |
tree | 0263ac3233d40c69dfbaf80ae0f11ee6f5dceb48 /cpp/test/Ice/objects/Client.cpp | |
parent | Deprecate ObjectFactory (diff) | |
download | ice-219451f2a88cb3e774b973d94a14c43326a6b55f.tar.bz2 ice-219451f2a88cb3e774b973d94a14c43326a6b55f.tar.xz ice-219451f2a88cb3e774b973d94a14c43326a6b55f.zip |
Fix compiler errors about ObjectFactory deprecation
Diffstat (limited to 'cpp/test/Ice/objects/Client.cpp')
-rw-r--r-- | cpp/test/Ice/objects/Client.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cpp/test/Ice/objects/Client.cpp b/cpp/test/Ice/objects/Client.cpp index 02f6d2363e2..92156aa8896 100644 --- a/cpp/test/Ice/objects/Client.cpp +++ b/cpp/test/Ice/objects/Client.cpp @@ -13,6 +13,16 @@ DEFINE_TEST("client") +#ifdef _MSC_VER +// For 'Ice::Communicator::addObjectFactory()' deprecation +#pragma warning( disable : 4996 ) +#endif + +#if defined(__GNUC__) +// For 'Ice::Communicator::addObjectFactory()' deprecation +# pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + using namespace std; using namespace Test; |