From 0016a0d694c2aa8303afeb8ec268d4c772bc1810 Mon Sep 17 00:00:00 2001 From: Arturo Vargas Date: Fri, 9 Jan 2026 10:23:31 -0800 Subject: [PATCH] fix unused variable warning --- include/RAJA/policy/sequential/launch.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/RAJA/policy/sequential/launch.hpp b/include/RAJA/policy/sequential/launch.hpp index 2522ea8b98..bc4fb7d713 100644 --- a/include/RAJA/policy/sequential/launch.hpp +++ b/include/RAJA/policy/sequential/launch.hpp @@ -48,12 +48,12 @@ struct LaunchExecute BODY const& body, ReduceParams& launch_reducers) { - using EXEC_POL = RAJA::seq_exec; - EXEC_POL pol {}; constexpr bool is_parampack_empty = RAJA::expt::type_traits::is_ForallParamPack_empty::value; if constexpr (!is_parampack_empty) { + using EXEC_POL = RAJA::seq_exec; + EXEC_POL pol {}; expt::ParamMultiplexer::parampack_init(pol, launch_reducers); } @@ -74,6 +74,8 @@ struct LaunchExecute ctx.shared_mem_ptr = nullptr; if constexpr (!is_parampack_empty) { + using EXEC_POL = RAJA::seq_exec; + EXEC_POL pol {}; expt::ParamMultiplexer::parampack_resolve(pol, launch_reducers); }