Skip to content

Cleanup unused variable in php_dom.c #12463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions ext/dom/php_dom.c
Original file line number Diff line number Diff line change
Expand Up @@ -968,11 +968,6 @@ void dom_xpath_objects_free_storage(zend_object *object)
void dom_objects_free_storage(zend_object *object)
{
dom_object *intern = php_dom_obj_from_obj(object);
#if defined(__GNUC__) && __GNUC__ >= 3
int retcount __attribute__((unused)); /* keep compiler quiet */
#else
int retcount;
#endif

zend_object_std_dtor(&intern->std);

Expand All @@ -981,7 +976,7 @@ void dom_objects_free_storage(zend_object *object)
php_libxml_node_decrement_resource((php_libxml_node_object *) intern);
} else {
php_libxml_decrement_node_ptr((php_libxml_node_object *) intern);
retcount = php_libxml_decrement_doc_ref((php_libxml_node_object *)intern);
php_libxml_decrement_doc_ref((php_libxml_node_object *) intern);
}
intern->ptr = NULL;
}
Expand Down