From 876287bf1ebf88d5f84b9eeb9452b2e01ff54f04 Mon Sep 17 00:00:00 2001 From: Yuuichi Asahi Date: Thu, 4 Jul 2024 16:01:11 +0900 Subject: [PATCH] Add maybe_unused for fftw backend --- fft/src/KokkosFFT_OpenMP_plans.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fft/src/KokkosFFT_OpenMP_plans.hpp b/fft/src/KokkosFFT_OpenMP_plans.hpp index 50464c83..0b3f9883 100644 --- a/fft/src/KokkosFFT_OpenMP_plans.hpp +++ b/fft/src/KokkosFFT_OpenMP_plans.hpp @@ -73,7 +73,8 @@ auto _create(const ExecutionSpace& exec_space, std::unique_ptr& plan, // For the moment, considering the contiguous layout only int istride = 1, ostride = 1; - auto sign = KokkosFFT::Impl::direction_type(direction); + [[maybe_unused]] auto sign = + KokkosFFT::Impl::direction_type(direction); plan = std::make_unique(); if constexpr (type == KokkosFFT::Impl::FFTWTransformType::R2C) {