Commit:    1af111dd68fc246fa07dbd6bd8e84a30ce28f6c2
Author:    Christopher Jones <s...@php.net>         Wed, 21 Aug 2013 15:37:02 
-0700
Parents:   d0bede2efa5b1801e3eb60c707e47bb4d90d3a92
Branches:  PHP-5.4 PHP-5.5 master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=1af111dd68fc246fa07dbd6bd8e84a30ce28f6c2

Log:
Suppress compiler warning "warning: variable ‘retcount’ set but not used 
[-Wunused-but-set-variable]"

Changed paths:
  M  ext/dom/php_dom.c


Diff:
diff --git a/ext/dom/php_dom.c b/ext/dom/php_dom.c
index c3b0ee0..bd9c987 100644
--- a/ext/dom/php_dom.c
+++ b/ext/dom/php_dom.c
@@ -1089,7 +1089,11 @@ void dom_xpath_objects_free_storage(void *object 
TSRMLS_DC)
 void dom_objects_free_storage(void *object TSRMLS_DC)
 {
        dom_object *intern = (dom_object *)object;
+#if defined(__GNUC__) && __GNUC__ >= 3
+       int retcount __attribute__((unused)); /* keep compiler quiet */
+#else
        int retcount;
+#endif
 
        zend_object_std_dtor(&intern->std TSRMLS_CC);


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to