From 6956042fb48d43c1f7d9b3e0ec84a9a3bc6c2f3c Mon Sep 17 00:00:00 2001 From: Lubosz Sarnecki Date: Wed, 9 Aug 2023 13:47:34 +0200 Subject: [PATCH] d/remote: Use same return type as in interface. Fixes GCC 13 warning [-Wenum-int-mismatch]. Use same return type in for r_create_devices definition in r_hub.c as in the declaration in r_interface.h. The function was already returning correct xrt_result_t. --- src/xrt/drivers/remote/r_hub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xrt/drivers/remote/r_hub.c b/src/xrt/drivers/remote/r_hub.c index 69f824c7f..f60c5eb9d 100644 --- a/src/xrt/drivers/remote/r_hub.c +++ b/src/xrt/drivers/remote/r_hub.c @@ -376,7 +376,7 @@ r_hub_system_devices_destroy(struct xrt_system_devices *xsysd) * */ -int +xrt_result_t r_create_devices(uint16_t port, struct xrt_system_devices **out_xsysd) { struct r_hub *r = U_TYPED_CALLOC(struct r_hub);