From ab209bcf1848698e47b65a094052aa2385ac979f Mon Sep 17 00:00:00 2001 From: Christoph Haag Date: Thu, 15 Jul 2021 01:31:19 +0200 Subject: [PATCH] c/main: Add return value for when asserts are disabled It's not worth introducing a new error code for this case, just return XRT_ERROR_VULKAN. Fixes error with asserts disabled ../src/xrt/compositor/main/comp_compositor.c: In function 'compositor_mark_frame': ../src/xrt/compositor/main/comp_compositor.c:186:1: warning: control reaches end of non-void function [-Wreturn-type] 186 | } | ^ --- src/xrt/compositor/main/comp_compositor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xrt/compositor/main/comp_compositor.c b/src/xrt/compositor/main/comp_compositor.c index 836bfa2db..bbc191263 100644 --- a/src/xrt/compositor/main/comp_compositor.c +++ b/src/xrt/compositor/main/comp_compositor.c @@ -183,6 +183,7 @@ compositor_mark_frame(struct xrt_compositor *xc, return XRT_SUCCESS; default: assert(false); } + return XRT_ERROR_VULKAN; } static xrt_result_t