st/oxr: Fix warnings introduced in ht data source MR
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2666>
2790 unmodified linesExpand all2791279227932794279527952796279727982799374 unmodified linesExpand all2790 unmodified linesExpand all * * if OXR_HAVE_EXT_hand_tracking_data_source is not defined the list * will contain refs to all the above options. */ const struct oxr_hand_tracking_data_source *requested_sources[2]; struct oxr_hand_tracking_data_source *requested_sources[2]; uint32_t requested_sources_count;
XrHandEXT hand; XrHandJointSetEXT hand_joint_set;374 unmodified linesExpand all1510 unmodified linesExpand all1511151215131514151515151516151715181519152015201521152215231524350 unmodified linesExpand all1510 unmodified linesExpand all
//! Convert at_time to monotonic and give to device. const int64_t at_timestamp_ns = time_state_ts_to_monotonic_ns(inst->timekeeping, at_time);
const struct oxr_hand_tracking_data_source *data_sources[ARRAY_SIZE(hand_tracker->requested_sources)] = {0}; struct oxr_hand_tracking_data_source *data_sources[ARRAY_SIZE(hand_tracker->requested_sources)] = {0}; memcpy(data_sources, hand_tracker->requested_sources, sizeof(data_sources));
if (debug_get_bool_option_hand_tracking_prioritize_conforming() && // hand_tracker->requested_sources_count > 1) { const struct oxr_hand_tracking_data_source *tmp = data_sources[0]; struct oxr_hand_tracking_data_source *tmp = data_sources[0]; data_sources[0] = data_sources[1]; data_sources[1] = tmp; }
350 unmodified linesExpand all