summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReini Urban <rurban@cpanel.net>2016-10-14 22:30:42 +0200
committerIngy döt Net <ingy@ingy.net>2018-06-30 14:47:34 -0700
commit31bb2aaa34899b06f5c3666c4c9cbe44117203e5 (patch)
tree31cb7ce798cded5ef5bf8dcb992396e40080d786
parent1049e0406786329f9cdb347ad44dc637112ca6a4 (diff)
downloadlibyaml-git-31bb2aaa34899b06f5c3666c4c9cbe44117203e5.tar.gz
Fix yaml_document_delete
Remove unneeded context, which is not set in any macro.
-rw-r--r--src/api.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/api.c b/src/api.c
index ee170d8..b0afd1f 100644
--- a/src/api.c
+++ b/src/api.c
@@ -1117,13 +1117,8 @@ error:
YAML_DECLARE(void)
yaml_document_delete(yaml_document_t *document)
{
- struct {
- yaml_error_type_t error;
- } context;
yaml_tag_directive_t *tag_directive;
- context.error = YAML_NO_ERROR; /* Eliminate a compliler warning. */
-
assert(document); /* Non-NULL document object is expected. */
while (!STACK_EMPTY(&context, document->nodes)) {