mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-06 07:06:10 +00:00
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 | } | ^
This commit is contained in:
parent
86e42858b7
commit
ab209bcf18
|
@ -183,6 +183,7 @@ compositor_mark_frame(struct xrt_compositor *xc,
|
||||||
return XRT_SUCCESS;
|
return XRT_SUCCESS;
|
||||||
default: assert(false);
|
default: assert(false);
|
||||||
}
|
}
|
||||||
|
return XRT_ERROR_VULKAN;
|
||||||
}
|
}
|
||||||
|
|
||||||
static xrt_result_t
|
static xrt_result_t
|
||||||
|
|
Loading…
Reference in a new issue