]> andersk Git - libyaml.git/blobdiff - tests/run-dumper.c
Imported Upstream version 0.1.5
[libyaml.git] / tests / run-dumper.c
index 149dde01e308a0f588c62fc3745f42efce946e79..41bead4940f57e3b96b5f98246f201440040c6e6 100644 (file)
@@ -2,9 +2,13 @@
 
 #include <stdlib.h>
 #include <stdio.h>
-#include <assert.h>
 #include <string.h>
 
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
+#include <assert.h>
+
 #define BUFFER_SIZE 65536
 #define MAX_DOCUMENTS  16
 
@@ -114,7 +118,9 @@ int compare_nodes(yaml_document_t *document1, int index1,
                             document2, node2->data.mapping.pairs.start[k].value)) return 0;
             }
             break;
-
+        default:
+            assert(0);
+            break;
     }
     return 1;
 }
This page took 0.025862 seconds and 4 git commands to generate.