summaryrefslogtreecommitdiff
path: root/py/modules/IcePy/ObjectAdapter.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2006-08-16 23:26:43 +0000
committerMark Spruiell <mes@zeroc.com>2006-08-16 23:26:43 +0000
commit5afb3cc5c3fb5abe3d476e2726b5165667abe0b3 (patch)
treed4b896b6c4eee174c98d6ee3280172c82d26e54f /py/modules/IcePy/ObjectAdapter.cpp
parentuse zero-copy functions for sequence<byte> (diff)
downloadice-5afb3cc5c3fb5abe3d476e2726b5165667abe0b3.tar.bz2
ice-5afb3cc5c3fb5abe3d476e2726b5165667abe0b3.tar.xz
ice-5afb3cc5c3fb5abe3d476e2726b5165667abe0b3.zip
minor fix for optimization warning
Diffstat (limited to 'py/modules/IcePy/ObjectAdapter.cpp')
-rw-r--r--py/modules/IcePy/ObjectAdapter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/modules/IcePy/ObjectAdapter.cpp b/py/modules/IcePy/ObjectAdapter.cpp
index 0cec538c877..b8041bc60d2 100644
--- a/py/modules/IcePy/ObjectAdapter.cpp
+++ b/py/modules/IcePy/ObjectAdapter.cpp
@@ -1471,7 +1471,9 @@ IcePy::wrapObjectAdapter(const Ice::ObjectAdapterPtr& adapter)
Ice::ObjectAdapterPtr
IcePy::unwrapObjectAdapter(PyObject* obj)
{
+#ifndef NDEBUG
PyObject* wrapperType = lookupType("Ice.ObjectAdapterI");
+#endif
assert(wrapperType != NULL);
assert(PyObject_IsInstance(obj, wrapperType));
PyObjectHandle impl = PyObject_GetAttrString(obj, STRCAST("_impl"));