mirror of
https://github.com/g-truc/glm.git
synced 2024-11-23 01:14:34 +00:00
Fixed compiler warnings
g++-10.1.0/c++20: 'error: compound assignment with ‘volatile’-qualified left operand is deprecated [-Werror=volatile]'
This commit is contained in:
parent
2929ad5a66
commit
6fdeff4d67
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user