diff --git a/fft/src/KokkosFFT_OpenMP_plans.hpp b/fft/src/KokkosFFT_OpenMP_plans.hpp index fe7d5e5a..50464c83 100644 --- a/fft/src/KokkosFFT_OpenMP_plans.hpp +++ b/fft/src/KokkosFFT_OpenMP_plans.hpp @@ -12,7 +12,7 @@ namespace KokkosFFT { namespace Impl { template -void _init_threads(const ExecutionSpace& exec_space) { +void _init_threads([[maybe_unused]] const ExecutionSpace& exec_space) { #if defined(KOKKOS_ENABLE_OPENMP) || defined(KOKKOS_ENABLE_THREADS) int nthreads = exec_space.concurrency();