Fix build with clang16 https://cgit.freebsd.org/ports/plain/devel/py-ruamel.yaml.clib/files/patch-clang16 --- _ruamel_yaml.c.orig 2023-10-03 06:54:38 UTC +++ _ruamel_yaml.c @@ -2272,8 +2272,8 @@ static int __pyx_f_6ruamel_4yaml_4clib_12_ruamel_yaml_ static int __pyx_f_6ruamel_4yaml_4clib_12_ruamel_yaml_8CEmitter__serialize_node(struct __pyx_obj_6ruamel_4yaml_4clib_12_ruamel_yaml_CEmitter *__pyx_v_self, PyObject *__pyx_v_node, PyObject *__pyx_v_parent, PyObject *__pyx_v_index); /* proto*/ /* Module declarations from "ruamel.yaml.clib._ruamel_yaml" */ -static int __pyx_f_6ruamel_4yaml_4clib_12_ruamel_yaml_input_handler(void *, char *, int, int *); /*proto*/ -static int __pyx_f_6ruamel_4yaml_4clib_12_ruamel_yaml_output_handler(void *, char *, int); /*proto*/ +static int __pyx_f_6ruamel_4yaml_4clib_12_ruamel_yaml_input_handler(void *, unsigned char *, size_t, size_t *); /*proto*/ +static int __pyx_f_6ruamel_4yaml_4clib_12_ruamel_yaml_output_handler(void *, unsigned char *, size_t); /*proto*/ static PyObject *__pyx_f_6ruamel_4yaml_4clib_12_ruamel_yaml___pyx_unpickle_Mark__set_state(struct __pyx_obj_6ruamel_4yaml_4clib_12_ruamel_yaml_Mark *, PyObject *); /*proto*/ /* #### Code section: typeinfo ### */ /* #### Code section: before_global_var ### */ @@ -16092,7 +16092,7 @@ static PyObject *__pyx_pf_6ruamel_4yaml_4clib_12_ruame * parser = data */ -static int __pyx_f_6ruamel_4yaml_4clib_12_ruamel_yaml_input_handler(void *__pyx_v_data, char *__pyx_v_buffer, int __pyx_v_size, int *__pyx_v_read) { +static int __pyx_f_6ruamel_4yaml_4clib_12_ruamel_yaml_input_handler(void *__pyx_v_data, unsigned char *__pyx_v_buffer, size_t __pyx_v_size, size_t *__pyx_v_read) { struct __pyx_obj_6ruamel_4yaml_4clib_12_ruamel_yaml_CParser *__pyx_v_parser = 0; PyObject *__pyx_v_value = NULL; int __pyx_r; @@ -25321,7 +25321,7 @@ static PyObject *__pyx_pf_6ruamel_4yaml_4clib_12_ruame * emitter = data */ -static int __pyx_f_6ruamel_4yaml_4clib_12_ruamel_yaml_output_handler(void *__pyx_v_data, char *__pyx_v_buffer, int __pyx_v_size) { +static int __pyx_f_6ruamel_4yaml_4clib_12_ruamel_yaml_output_handler(void *__pyx_v_data, unsigned char *__pyx_v_buffer, size_t __pyx_v_size) { struct __pyx_obj_6ruamel_4yaml_4clib_12_ruamel_yaml_CEmitter *__pyx_v_emitter = 0; PyObject *__pyx_v_value = NULL; int __pyx_r;