]> andersk Git - libyaml.git/commitdiff
Fix yaml_document_delete
authorReini Urban <rurban@cpanel.net>
Fri, 14 Oct 2016 20:30:42 +0000 (22:30 +0200)
committerIngy döt Net <ingy@ingy.net>
Sat, 30 Jun 2018 21:47:34 +0000 (14:47 -0700)
Remove unneeded context, which is not set in any macro.

src/api.c

index ee170d87de9095ca9c163b11a8cc99d854e4a910..b0afd1f5915fefffb37ddca9338af4d9425d90ab 100644 (file)
--- 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)) {
This page took 0.188488 seconds and 5 git commands to generate.