Build lineage 16.0 issue
Hello, landlord, I encountered the following problems when building lineage 16.0 through the configuration file you provided:
external/ant-wireless/ant_native/src/bt-vendor_vfs/ant_native_chardev.c:75:5: error: incompatible pointer types initializing 'cfg_result_cb' (aka 'void (*)(bt_vendor_op_result_t)') with an expression of type 'void *(int)' [-Werror,-Wincompatible-pointer-types]
vendor_alloc,
^~~~~~~~~~~~
external/ant-wireless/ant_native/src/bt-vendor_vfs/ant_native_chardev.c:76:5: error: incompatible pointer types initializing 'malloc_cb' (aka 'void *(*)(int)') with an expression of type 'void (void *)' [-Werror,-Wincompatible-pointer-types]
vendor_dealloc,
^~~~~~~~~~~~~~
external/ant-wireless/ant_native/src/bt-vendor_vfs/ant_native_chardev.c:77:5: error: incompatible pointer types initializing 'mdealloc_cb' (aka 'void (*)(void *)') with an expression of type 'uint8_t (uint16_t, void *, tINT_CMD_CBACK)' (aka 'unsigned char (unsigned short, void *, void (*)(void *))') [-Werror,-Wincompatible-pointer-types]
vendor_xmit_cb,
^~~~~~~~~~~~~~
external/ant-wireless/ant_native/src/bt-vendor_vfs/ant_native_chardev.c:78:5: error: incompatible pointer types initializing 'cmd_xmit_cb' (aka 'unsigned char (*)(unsigned short, void *, void (*)(void *))') with an expression of type 'void (bt_vendor_op_result_t)' [-Werror,-Wincompatible-pointer-types]
vendor_epilog_cb
^~~~~~~~~~~~~~~~
external/ant-wireless/ant_native/src/bt-vendor_vfs/ant_native_chardev.c:79:1: error: missing field 'epilog_cb' initializer [-Werror,-Wmissing-field-initializers]
};
^
external/ant-wireless/ant_native/src/bt-vendor_vfs/ant_native_chardev.c:906:40: error: implicit conversion from enumeration type 'ant_serial' to different enumeration type 'bt_vendor_opcode_t' [-Werror,-Wenum-conversion]
int ret = vendor_interface->op(BT_VND_OP_ANT_USERIAL_OPEN, fd);
~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~
external/ant-wireless/ant_native/src/bt-vendor_vfs/ant_native_chardev.c:919:44: error: implicit conversion from enumeration type 'ant_serial' to different enumeration type 'bt_vendor_opcode_t' [-Werror,-Wenum-conversion]
int ret = vendor_interface->op(BT_VND_OP_ANT_USERIAL_CLOSE, NULL);
~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~
7 errors generated.
This problem has troubled me for a long time, and no relevant solution has been found on the Internet. How does the landlord solve it?