summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/objects/Client.cpp
diff options
context:
space:
mode:
authorJoe George <joe@zeroc.com>2015-12-10 10:42:00 -0500
committerJoe George <joe@zeroc.com>2015-12-10 10:42:00 -0500
commit219451f2a88cb3e774b973d94a14c43326a6b55f (patch)
tree0263ac3233d40c69dfbaf80ae0f11ee6f5dceb48 /cpp/test/Ice/objects/Client.cpp
parentDeprecate ObjectFactory (diff)
downloadice-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.cpp10
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;