sptests: Do not use deprecated volatile operation

C++20 deprecated some volatile operations including increments.

Update #5505.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
This commit is contained in:
Sebastian Huber
2026-03-06 11:30:16 -06:00
committed by Joel Sherrill
parent b380a3dcdf
commit 8c5fa6e1fc
+1 -1
View File
@@ -37,7 +37,7 @@ class A {
public:
A()
{
++i;
i = i + 1;
}
static volatile int i;