summaryrefslogtreecommitdiff
path: root/php/src/IcePHP/Connection.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2013-01-04 18:24:37 +0100
committerJose <jose@zeroc.com>2013-01-04 18:24:37 +0100
commit47c703bddc4f2e4e88dbe66b1e54778292370b1f (patch)
tree212f907fabd9aee86f2d8a82b8115f2bcf25bb95 /php/src/IcePHP/Connection.cpp
parentICE-4938: Super compact enoding (diff)
downloadice-47c703bddc4f2e4e88dbe66b1e54778292370b1f.tar.bz2
ice-47c703bddc4f2e4e88dbe66b1e54778292370b1f.tar.xz
ice-47c703bddc4f2e4e88dbe66b1e54778292370b1f.zip
Fixed (ICE-5175) - php doesn't compile on SLES
Diffstat (limited to 'php/src/IcePHP/Connection.cpp')
-rw-r--r--php/src/IcePHP/Connection.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/php/src/IcePHP/Connection.cpp b/php/src/IcePHP/Connection.cpp
index 4044ac0c564..5634660d5ff 100644
--- a/php/src/IcePHP/Connection.cpp
+++ b/php/src/IcePHP/Connection.cpp
@@ -270,6 +270,11 @@ handleConnectionCompare(zval* zobj1, zval* zobj2 TSRMLS_DC)
}
//
+// Necessary to suppress warnings from zend_function_entry in php-5.2.
+//
+#pragma GCC diagnostic ignored "-Wwrite-strings"
+
+//
// Predefined methods for Connection.
//
static zend_function_entry _interfaceMethods[] =
@@ -303,6 +308,10 @@ static zend_function_entry _connectionInfoClassMethods[] =
ZEND_ME(Ice_ConnectionInfo, __construct, NULL, ZEND_ACC_PRIVATE|ZEND_ACC_CTOR)
{0, 0, 0}
};
+//
+// enable warning again
+//
+#pragma GCC diagnostic error "-Wwrite-strings"
#ifdef _WIN32
extern "C"