From 9999f891d1c9093e552492cf8ccc3168370c7a39 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Thu, 17 Feb 2022 17:35:34 +0100 Subject: [PATCH] bench: Avoid deprecated use of volatile += --- src/bench/examples.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bench/examples.cpp b/src/bench/examples.cpp index dcd615b9da269..72a9922e94e51 100644 --- a/src/bench/examples.cpp +++ b/src/bench/examples.cpp @@ -13,7 +13,7 @@ static void Trig(benchmark::Bench& bench) { double d = 0.01; bench.run([&] { - sum += sin(d); + sum = sum + sin(d); d += 0.000001; }); }