Subject: | compile warning incompatible pointer type |
I am getting a compile warning:
perl_libyaml.c:471: warning: passing argument 2 of
‘yaml_emitter_set_output’ from incompatible pointer type
Looks like it just needs a cast. Patch attached.
Subject: | YAML-LibYAML-0.27.tar.gz.dump.pointer.type.patch |
diff -Naur ../YAML-LibYAML-0.27.orig/LibYAML/perl_libyaml.c ../YAML-LibYAML-0.27/LibYAML/perl_libyaml.c
--- ../YAML-LibYAML-0.27.orig/LibYAML/perl_libyaml.c 2008-06-06 22:30:30.000000000 -0700
+++ ../YAML-LibYAML-0.27/LibYAML/perl_libyaml.c 2008-08-19 16:04:06.000000000 -0700
@@ -466,7 +466,7 @@
yaml_emitter_set_width(&dumper.emitter, 2);
yaml_emitter_set_output(
&dumper.emitter,
- &append_output,
+ (yaml_write_handler_t* )&append_output,
yaml
);
yaml_stream_start_event_initialize(