[Kde-bindings] KDE/kdebindings/php/phpqt/src
Thomas Moenicke
tm at php-qt.org
Sun Jul 13 23:56:38 UTC 2008
SVN commit 832055 by moenicke:
* removed compiler warnings
CCMAIL: kde-bindings at kde.org
M +32 -4 php_qt.cpp
--- trunk/KDE/kdebindings/php/phpqt/src/php_qt.cpp #832054:832055
@@ -41,7 +41,6 @@
extern TypeHandler Qt_handlers[];
void install_handlers(TypeHandler *);
-static int le_php_qt;
static int le_php_qt_hashtype; // object list
extern zend_object_handlers php_qt_handler; // object handler
@@ -148,15 +147,31 @@
extern "C" {
/* emit does nothing */
-ZEND_METHOD(php_qt_generic_class, emit){}
+ZEND_METHOD(php_qt_generic_class, emit)
+{
+ Q_UNUSED(return_value_ptr);
+ Q_UNUSED(this_ptr);
+ Q_UNUSED(return_value_used);
+ Q_UNUSED(ht);
+ Q_UNUSED(return_value);
+}
ZEND_METHOD(php_qt_generic_class, __toString)
{
- RETURN_STRING("", 1);
+ Q_UNUSED(return_value_ptr);
+ Q_UNUSED(this_ptr);
+ Q_UNUSED(return_value_used);
+ Q_UNUSED(ht);
+ RETURN_STRING("", 1);
}
ZEND_METHOD(php_qt_generic_class, __destruct)
{
+ Q_UNUSED(return_value_ptr);
+ Q_UNUSED(return_value_used);
+ Q_UNUSED(ht);
+ Q_UNUSED(return_value);
+
pDebug( PHPQt::Destruct ) << "__destruct" << getThis();
if( getThis()->type == IS_OBJECT ) {
if( PHPQt::SmokePHPObjectExists( getThis() ) ) {
@@ -183,6 +198,11 @@
ZEND_METHOD(php_qt_generic_class, __construct)
{
+ Q_UNUSED(return_value_ptr);
+ Q_UNUSED(return_value_used);
+ Q_UNUSED(ht);
+ Q_UNUSED(return_value);
+
Context::setActiveScope( getThis() );
Context::setCallType( Context::ConstructorCall );
@@ -229,6 +249,7 @@
ZEND_METHOD(php_qt_generic_class, proxyMethod)
{
+ Q_UNUSED(return_value_used);
Context::setCallType( Context::MethodCall );
zend_class_entry *ce;
// nonstaticphp_qt_generic_class_proxyMethod
@@ -349,6 +370,7 @@
PHP_MINIT_FUNCTION(php_qt)
{
+ Q_UNUSED(type);
Context::createContext();
REGISTER_INI_ENTRIES();
@@ -417,6 +439,8 @@
*/
PHP_MSHUTDOWN_FUNCTION(php_qt)
{
+ Q_UNUSED(type);
+ Q_UNUSED(module_number);
Context::destroyContext();
SmokeQtObjects.clear();
@@ -430,6 +454,8 @@
*/
PHP_RINIT_FUNCTION(php_qt)
{
+ Q_UNUSED(type);
+ Q_UNUSED(module_number);
return SUCCESS;
}
@@ -437,7 +463,9 @@
*/
PHP_RSHUTDOWN_FUNCTION(php_qt)
{
- return SUCCESS;
+ Q_UNUSED(type);
+ Q_UNUSED(module_number);
+ return SUCCESS;
}
/*! PHP_MINFO_FUNCTION
More information about the Kde-bindings
mailing list