From 8c5fa6e1fc238280c8850241c3e6bc2275f9e6ab Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 2 Mar 2026 03:19:32 +0100 Subject: [PATCH] sptests: Do not use deprecated volatile operation C++20 deprecated some volatile operations including increments. Update #5505. Signed-off-by: Sebastian Huber --- testsuites/sptests/spglobalcon01/init.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuites/sptests/spglobalcon01/init.cc b/testsuites/sptests/spglobalcon01/init.cc index 70cf4a53bf..b202584a8e 100644 --- a/testsuites/sptests/spglobalcon01/init.cc +++ b/testsuites/sptests/spglobalcon01/init.cc @@ -37,7 +37,7 @@ class A { public: A() { - ++i; + i = i + 1; } static volatile int i;