bench: Avoid deprecated use of volatile +=
This commit is contained in:
1 file changed
+1
-1
@@ -13,7 +13,7 @@ static void Trig(benchmark::Bench& bench)
|
|||||||
{
|
{
|
||||||
double d = 0.01;
|
double d = 0.01;
|
||||||
bench.run([&] {
|
bench.run([&] {
|
||||||
sum += sin(d);
|
sum = sum + sin(d);
|
||||||
d += 0.000001;
|
d += 0.000001;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user