From fa1ddbd839d2f3ab847dbe9dd419de3559f73a86 Mon Sep 17 00:00:00 2001 From: Benau Date: Fri, 1 Oct 2021 12:57:07 +0800 Subject: [PATCH] Remove compiler warning --- src/utils/mini_glm.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/mini_glm.hpp b/src/utils/mini_glm.hpp index e466c283b..6dc3b46be 100644 --- a/src/utils/mini_glm.hpp +++ b/src/utils/mini_glm.hpp @@ -435,7 +435,7 @@ namespace MiniGLM q.z() / length, q.w() / length }}; - std::array tmp_3; + std::array tmp_3 = {}; auto ret = std::max_element(tmp_2.begin(), tmp_2.end(), [](float a, float b) { return std::abs(a) < std::abs(b); }); int extra_2_bit = int(std::distance(tmp_2.begin(), ret));