]> andersk Git - libyaml.git/blobdiff - tests/test-version.c
Fix -Wformat compilation errors in tests
[libyaml.git] / tests / test-version.c
index 5982f7d753183546618f1e8b758090fc635dd3fc..69ae5bb3828a750b1537cf725b18a274a7a6dae3 100644 (file)
@@ -2,6 +2,10 @@
 
 #include <stdlib.h>
 #include <stdio.h>
+
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
 #include <assert.h>
 
 int
@@ -17,9 +21,9 @@ main(void)
     assert(strcmp(buf, yaml_get_version_string()) == 0);
 
     /* Print structure sizes. */
-    printf("sizeof(token) = %d\n", sizeof(yaml_token_t));
-    printf("sizeof(event) = %d\n", sizeof(yaml_event_t));
-    printf("sizeof(parser) = %d\n", sizeof(yaml_parser_t));
+    printf("sizeof(token) = %lu\n", sizeof(yaml_token_t));
+    printf("sizeof(event) = %lu\n", sizeof(yaml_event_t));
+    printf("sizeof(parser) = %lu\n", sizeof(yaml_parser_t));
 
     return 0;
 }
This page took 0.133388 seconds and 4 git commands to generate.