mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 17:58:27 +08:00
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:
committed by
Joel Sherrill
parent
b380a3dcdf
commit
8c5fa6e1fc
@@ -37,7 +37,7 @@ class A {
|
||||
public:
|
||||
A()
|
||||
{
|
||||
++i;
|
||||
i = i + 1;
|
||||
}
|
||||
|
||||
static volatile int i;
|
||||
|
||||
Reference in New Issue
Block a user