mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-17 20:28:45 +00:00
comp/{main,util}: Fix warnings
This commit is contained in:
parent
1f3eba0428
commit
3609f9149e
|
@ -1181,6 +1181,7 @@ comp_main_create_system_compositor(struct xrt_device *xdev,
|
||||||
struct u_pacing_app_factory *upaf = NULL;
|
struct u_pacing_app_factory *upaf = NULL;
|
||||||
xrt_result_t xret = u_pa_factory_create(&upaf);
|
xrt_result_t xret = u_pa_factory_create(&upaf);
|
||||||
assert(xret == XRT_SUCCESS && upaf != NULL);
|
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);
|
return comp_multi_create_system_compositor(&c->base.base, upaf, sys_info, !c->deferred_surface, out_xsysc);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
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);
|
index, sc->images[index].use_count, start_wait_rt, end_wait_rt);
|
||||||
|
|
||||||
int ret;
|
int ret = 0;
|
||||||
while (sc->images[index].use_count > 0) {
|
while (sc->images[index].use_count > 0) {
|
||||||
// use pthread_cond_timedwait to implement timeout behavior
|
// use pthread_cond_timedwait to implement timeout behavior
|
||||||
ret = pthread_cond_timedwait(&sc->images[index].use_cond, &sc->images[index].use_mutex.mutex, &spec);
|
ret = pthread_cond_timedwait(&sc->images[index].use_cond, &sc->images[index].use_mutex.mutex, &spec);
|
||||||
|
|
Loading…
Reference in a new issue