The open source OpenXR runtime

d/rift: Fix some warnings

Seems like GCC doesn't pick these up but Clang does.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2503>

+10 -2
+1 -1
src/xrt/drivers/rift/rift_distortion.c
··· 495 495 // TODO: let the user specify which distortion is in use with an env var, 496 496 // and interpolate the distortions for the user's specific eye relief setting 497 497 hmd->distortion_in_use = 1; 498 - } 498 + }
+8
src/xrt/drivers/rift/rift_hmd.c
··· 450 450 451 451 os_thread_helper_lock(&hmd->sensor_thread); 452 452 453 + // uncomment this to be able to see if things are actually progressing as expected in a debugger, without having 454 + // to count yourself 455 + // #define TICK_DEBUG 456 + 453 457 int result = 0; 458 + #ifdef TICK_DEBUG 454 459 int ticks = 0; 460 + #endif 455 461 456 462 while (os_thread_helper_is_running_locked(&hmd->sensor_thread) && result >= 0) { 457 463 os_thread_helper_unlock(&hmd->sensor_thread); ··· 459 465 result = sensor_thread_tick(hmd); 460 466 461 467 os_thread_helper_lock(&hmd->sensor_thread); 468 + #ifdef TICK_DEBUG 462 469 ticks += 1; 470 + #endif 463 471 } 464 472 465 473 os_thread_helper_unlock(&hmd->sensor_thread);
+1 -1
src/xrt/drivers/rift/rift_prober.c
··· 76 76 *out_xdev = &hd->base; 77 77 78 78 return 1; 79 - } 79 + }