comp/{main,util}: Fix warnings

This commit is contained in:
Ryan Pavlik 2023-06-16 16:48:03 -05:00 committed by Jakob Bornecrantz
parent 1f3eba0428
commit 3609f9149e
2 changed files with 2 additions and 1 deletions

View file

@ -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);
}

View file

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