diff --git a/fft/src/KokkosFFT_Host_plans.hpp b/fft/src/KokkosFFT_Host_plans.hpp index 12732098..5a0ae12b 100644 --- a/fft/src/KokkosFFT_Host_plans.hpp +++ b/fft/src/KokkosFFT_Host_plans.hpp @@ -17,7 +17,7 @@ template , std::nullptr_t> = nullptr> void setup() { - static bool once = [] { + [[maybe_unused]] static bool once = [] { if (!(Kokkos::is_initialized() || Kokkos::is_finalized())) { Kokkos::abort( "Error: KokkosFFT APIs must not be called before initializing "