From b94f1dc4f622111ede7d06f0af70d39ff35056d7 Mon Sep 17 00:00:00 2001 From: Frank Hilliger Date: Wed, 10 Jan 2024 11:31:12 +0100 Subject: [PATCH] Fixed failed quality gates: C-style pointer casting --- ACE/tests/Future_Stress_Test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ACE/tests/Future_Stress_Test.cpp b/ACE/tests/Future_Stress_Test.cpp index 13e8ae48307..832a8d14851 100644 --- a/ACE/tests/Future_Stress_Test.cpp +++ b/ACE/tests/Future_Stress_Test.cpp @@ -70,7 +70,7 @@ void* runner (void* args) int expected_res = config.a+config.b*config.c; int actual_res = -1; if (ACE_Thread::spawn((ACE_THR_FUNC)worker, - (void *)&config, THR_NEW_LWP | THR_JOINABLE, 0, + static_cast(&config), THR_NEW_LWP | THR_JOINABLE, 0, &thread_id) == -1) { ACE_ERROR ((LM_INFO, @@ -128,7 +128,7 @@ run_main (int argc, ACE_TCHAR *argv[]) { ACE_Thread_Manager::instance ()->spawn_n (n_threads, ACE_THR_FUNC (runner), - (void *) &duration, + static_cast(&duration), THR_NEW_LWP | THR_DETACHED); ACE_Thread_Manager::instance ()->wait (); -- 2.11.4.GIT