diff --git a/src/xrt/compositor/main/comp_compositor.c b/src/xrt/compositor/main/comp_compositor.c index d2ae3e9ba..f1ca2ad5f 100644 --- a/src/xrt/compositor/main/comp_compositor.c +++ b/src/xrt/compositor/main/comp_compositor.c @@ -1181,6 +1181,7 @@ comp_main_create_system_compositor(struct xrt_device *xdev, struct u_pacing_app_factory *upaf = NULL; xrt_result_t xret = u_pa_factory_create(&upaf); assert(xret == XRT_SUCCESS && upaf != NULL); + (void)xret; return comp_multi_create_system_compositor(&c->base.base, upaf, sys_info, !c->deferred_surface, out_xsysc); } diff --git a/src/xrt/compositor/util/comp_swapchain.c b/src/xrt/compositor/util/comp_swapchain.c index 8b9841a65..cce655b6c 100644 --- a/src/xrt/compositor/util/comp_swapchain.c +++ b/src/xrt/compositor/util/comp_swapchain.c @@ -133,7 +133,7 @@ swapchain_wait_image(struct xrt_swapchain *xsc, uint64_t timeout_ns, uint32_t in VK_TRACE(sc->vk, "%p WAIT_IMAGE %d (use %d) start wait at: %" PRIu64 " (timeout at %" PRIu64 ")", (void *)sc, index, sc->images[index].use_count, start_wait_rt, end_wait_rt); - int ret; + int ret = 0; while (sc->images[index].use_count > 0) { // use pthread_cond_timedwait to implement timeout behavior ret = pthread_cond_timedwait(&sc->images[index].use_cond, &sc->images[index].use_mutex.mutex, &spec);