virtio(vulkan): Error building on Android/arm32
During testing of !10183 (merged) I've got a build error:
./src/virtio/vulkan/vn_common.c:101:24: error: incompatible pointer types initializing 'PFN_vkAllocationFunction' (aka 'void *(*)(void *, unsigned int, unsigned int, enum VkSy
stemAllocationScope) __attribute__((pcs("aapcs-vfp")))') with an expression of type 'void *(void *, size_t, size_t, VkSystemAllocationScope)' (aka 'void *(void *, unsigned int,
unsigned int, enum VkSystemAllocationScope)') [-Werror,-Wincompatible-pointer-types]
.pfnAllocation = vn_default_alloc,
^~~~~~~~~~~~~~~~
../src/virtio/vulkan/vn_common.c:102:26: error: incompatible pointer types initializing 'PFN_vkReallocationFunction' (aka 'void *(*)(void *, void *, unsigned int, unsigned int,
enum VkSystemAllocationScope) __attribute__((pcs("aapcs-vfp")))') with an expression of type 'void *(void *, void *, size_t, size_t, VkSystemAllocationScope)' (aka 'void *(voi
d *, void *, unsigned int, unsigned int, enum VkSystemAllocationScope)') [-Werror,-Wincompatible-pointer-types]
.pfnReallocation = vn_default_realloc,
^~~~~~~~~~~~~~~~~~
../src/virtio/vulkan/vn_common.c:103:18: error: incompatible pointer types initializing 'PFN_vkFreeFunction' (aka 'void (*)(void *, void *) __attribute__((pcs("aapcs-vfp")))')
with an expression of type 'void (void *, void *)' [-Werror,-Wincompatible-pointer-types]
.pfnFree = vn_default_free,
^~~~~~~~~~~~~~~
Error looks similar to the one reported in #4852 (closed) (closed), probably solution is the same.