Skip to content

Commit 7f46c87

Browse files
authored
Cleanup unused variable in php_dom.c (#12463)
1 parent 221b4fe commit 7f46c87

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

ext/dom/php_dom.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -968,11 +968,6 @@ void dom_xpath_objects_free_storage(zend_object *object)
968968
void dom_objects_free_storage(zend_object *object)
969969
{
970970
dom_object *intern = php_dom_obj_from_obj(object);
971-
#if defined(__GNUC__) && __GNUC__ >= 3
972-
int retcount __attribute__((unused)); /* keep compiler quiet */
973-
#else
974-
int retcount;
975-
#endif
976971

977972
zend_object_std_dtor(&intern->std);
978973

@@ -981,7 +976,7 @@ void dom_objects_free_storage(zend_object *object)
981976
php_libxml_node_decrement_resource((php_libxml_node_object *) intern);
982977
} else {
983978
php_libxml_decrement_node_ptr((php_libxml_node_object *) intern);
984-
retcount = php_libxml_decrement_doc_ref((php_libxml_node_object *)intern);
979+
php_libxml_decrement_doc_ref((php_libxml_node_object *) intern);
985980
}
986981
intern->ptr = NULL;
987982
}

0 commit comments

Comments
 (0)