From 68faf2bc89da30fc19e2f822f16f571c2ccd91ed Mon Sep 17 00:00:00 2001 From: Lubosz Sarnecki Date: Wed, 9 Aug 2023 14:11:22 +0200 Subject: [PATCH] t/psvr: Initialize Eigen vector with zeros. Fixes very verbose GCC 13 warning [-Wmaybe-uninitialized]. --- src/xrt/auxiliary/tracking/t_tracker_psvr.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/xrt/auxiliary/tracking/t_tracker_psvr.cpp b/src/xrt/auxiliary/tracking/t_tracker_psvr.cpp index 2dc3fd1eb..649449a89 100644 --- a/src/xrt/auxiliary/tracking/t_tracker_psvr.cpp +++ b/src/xrt/auxiliary/tracking/t_tracker_psvr.cpp @@ -193,11 +193,11 @@ typedef struct model_vertex typedef struct match_data { - float angle = {}; // angle from reference vector - float distance = {}; // distance from base of reference vector - int32_t vertex_index = {}; // index also known as tag - Eigen::Vector4f position = {}; // 3d position of vertex - blob_point_t src_blob = {}; // blob this vertex was derived from + float angle = {}; // angle from reference vector + float distance = {}; // distance from base of reference vector + int32_t vertex_index = {}; // index also known as tag + Eigen::Vector4f position = Eigen::Vector4f::Zero(); // 3d position of vertex + blob_point_t src_blob = {}; // blob this vertex was derived from } match_data_t; typedef struct match_model