Add back unused-variable warning

This commit is contained in:
Patrick Nicolas
2026-10-16 08:03:21 +02:00
parent 650ca30874
commit 879c50c743
26 changed files with 24 additions and 70 deletions
-1
View File
@@ -77,7 +77,6 @@ xrt_space_relation pose_list::extrapolate(const xrt_space_relation & a, const xr
float dt = (t - tb) / 1.e9;
float dt2_over_2 = dt * dt / 2;
res.pose.position = res.pose.position + lin_vel * dt;
if (res.relation_flags & XRT_SPACE_RELATION_ANGULAR_VELOCITY_VALID_BIT)
-2
View File
@@ -197,7 +197,6 @@ void body_joints_list::update_tracking(const wivrn::from_headset::meta_body & tr
if (auto it = parent.virtual_trackers.find(joint); it != parent.virtual_trackers.cend())
{
const auto body_part = parent.joint_body_parts.at(joint);
auto & tracker = it->second;
// Quest reports VALID bit not TRACKED bit, make sure TRACKED is set when VALID
@@ -240,7 +239,6 @@ void body_joints_list::update_tracking(const wivrn::from_headset::bd_body & trac
if (auto it = parent.virtual_trackers.find(joint); it != parent.virtual_trackers.cend())
{
const auto body_part = parent.joint_body_parts.at(joint);
auto & tracker = it->second;
tracker.update_tracking(tracking.production_timestamp, tracking.timestamp, pose, offset);
}
+4
View File
@@ -831,6 +831,10 @@ void wivrn_session::operator()(from_headset::visibility_mask_changed && mask)
},
};
auto result = xrt_session_event_sink_push(&xrt_system.broadcast, &event);
if (result != XRT_SUCCESS)
{
U_LOG_W("failed to push visibility mask changed event");
}
}
void wivrn_session::operator()(from_headset::session_state_changed && event)