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:
Christoph Haag 2021-07-15 01:31:19 +02:00
parent 86e42858b7
commit ab209bcf18

View file

@ -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