Skip to content

Commit 11087ee

Browse files
committed
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4: Suppress compiler warning "warning: variable ‘length’ set but not used [-Wunused-but-set-variable]" Suppress compiler warning "warning: variable ‘retcount’ set but not used [-Wunused-but-set-variable]"
2 parents d2a2e94 + 54d4a28 commit 11087ee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/dom/php_dom.c

+4
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,11 @@ void dom_xpath_objects_free_storage(void *object TSRMLS_DC)
10891089
void dom_objects_free_storage(void *object TSRMLS_DC)
10901090
{
10911091
dom_object *intern = (dom_object *)object;
1092+
#if defined(__GNUC__) && __GNUC__ >= 3
1093+
int retcount __attribute__((unused)); /* keep compiler quiet */
1094+
#else
10921095
int retcount;
1096+
#endif
10931097

10941098
zend_object_std_dtor(&intern->std TSRMLS_CC);
10951099

0 commit comments

Comments
 (0)