From: Christopher Jones Date: Wed, 21 Aug 2013 22:37:02 +0000 (-0700) Subject: Suppress compiler warning "warning: variable ‘retcount’ set but not used [-Wunused... X-Git-Tag: php-5.4.20RC1~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1af111dd68fc246fa07dbd6bd8e84a30ce28f6c2;p=php Suppress compiler warning "warning: variable ‘retcount’ set but not used [-Wunused-but-set-variable]" --- diff --git a/ext/dom/php_dom.c b/ext/dom/php_dom.c index c3b0ee0371..bd9c98756b 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);