diff options
author | Mark Spruiell <mes@zeroc.com> | 2008-05-28 08:59:58 -0700 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2008-06-06 12:25:27 +0200 |
commit | bd9e134c47cfee5413810e59fa40efa1e340f985 (patch) | |
tree | 65c931660e1d82c3e67ecf8677bc57a0db9b8e4e /php/src/IcePHP/Communicator.cpp | |
parent | fixing py/config/Make.rules in branch (diff) | |
download | ice-bd9e134c47cfee5413810e59fa40efa1e340f985.tar.bz2 ice-bd9e134c47cfee5413810e59fa40efa1e340f985.tar.xz ice-bd9e134c47cfee5413810e59fa40efa1e340f985.zip |
bug 3141 - fixing GCC warnings in IcePHP
Diffstat (limited to 'php/src/IcePHP/Communicator.cpp')
-rw-r--r-- | php/src/IcePHP/Communicator.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/php/src/IcePHP/Communicator.cpp b/php/src/IcePHP/Communicator.cpp index 66d34fe22da..0f9e3d6e72d 100644 --- a/php/src/IcePHP/Communicator.cpp +++ b/php/src/IcePHP/Communicator.cpp @@ -105,9 +105,10 @@ IcePHP::getCommunicator(TSRMLS_D) { Ice::CommunicatorPtr result; - zval **zv; - if(zend_hash_find(&EG(symbol_table), "ICE", sizeof("ICE"), reinterpret_cast<void **>(&zv)) == SUCCESS) + void* data; + if(zend_hash_find(&EG(symbol_table), "ICE", sizeof("ICE"), &data) == SUCCESS) { + zval** zv = reinterpret_cast<zval**>(data); ice_object* obj = getObject(*zv TSRMLS_CC); assert(obj); @@ -139,9 +140,10 @@ IcePHP::getCommunicator(TSRMLS_D) zval* IcePHP::getCommunicatorZval(TSRMLS_D) { - zval **zv = 0; - zend_hash_find(&EG(symbol_table), "ICE", sizeof("ICE"), reinterpret_cast<void **>(&zv)); - assert(zv); + void* data = 0; + zend_hash_find(&EG(symbol_table), "ICE", sizeof("ICE"), &data); + assert(data); + zval **zv = reinterpret_cast<zval**>(data); return *zv; } |