From 45cc2951a8d83b34932fb26350f4e342e1c269f1 Mon Sep 17 00:00:00 2001 From: Yuuichi Asahi Date: Wed, 15 Jan 2025 17:49:51 +0900 Subject: [PATCH] Add maybe unused for host plans --- fft/src/KokkosFFT_Host_plans.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "