From 6fdeff4d67f3db493d47c44da20aa1efaa6574ef Mon Sep 17 00:00:00 2001 From: Bjorn Wahlstrand Date: Sat, 1 Aug 2020 13:02:11 -0700 Subject: [PATCH] Fixed compiler warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit g++-10.1.0/c++20: 'error: compound assignment with ‘volatile’-qualified left operand is deprecated [-Werror=volatile]' --- glm/detail/type_half.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glm/detail/type_half.inl b/glm/detail/type_half.inl index b0723e36..5d239cf2 100644 --- a/glm/detail/type_half.inl +++ b/glm/detail/type_half.inl @@ -6,7 +6,7 @@ namespace detail volatile float f = 1e10; for(int i = 0; i < 10; ++i) - f *= f; // this will overflow before the for loop terminates + f = f * f; // this will overflow before the for loop terminates return f; }