Skip to content
Snippets Groups Projects
Commit 4e4e985ca02e authored by Reini Urban's avatar Reini Urban
Browse files

Fix yaml_document_delete

Remove unneeded context, which is not set in any macro.
parent dbc62a47e9f0
No related branches found
No related tags found
No related merge requests found
...@@ -1117,8 +1117,5 @@ ...@@ -1117,8 +1117,5 @@
YAML_DECLARE(void) YAML_DECLARE(void)
yaml_document_delete(yaml_document_t *document) yaml_document_delete(yaml_document_t *document)
{ {
struct {
yaml_error_type_t error;
} context;
yaml_tag_directive_t *tag_directive; yaml_tag_directive_t *tag_directive;
...@@ -1123,7 +1120,5 @@ ...@@ -1123,7 +1120,5 @@
yaml_tag_directive_t *tag_directive; yaml_tag_directive_t *tag_directive;
context.error = YAML_NO_ERROR; /* Eliminate a compliler warning. */
assert(document); /* Non-NULL document object is expected. */ assert(document); /* Non-NULL document object is expected. */
while (!STACK_EMPTY(&context, document->nodes)) { while (!STACK_EMPTY(&context, document->nodes)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment