Skip to content

Commit

Permalink
Add maybe unused for host plans
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuuichi Asahi committed Jan 15, 2025
1 parent a557b5a commit 45cc295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fft/src/KokkosFFT_Host_plans.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ template <typename ExecutionSpace, typename T,
std::enable_if_t<is_AnyHostSpace_v<ExecutionSpace>, 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 "
Expand Down

0 comments on commit 45cc295

Please sign in to comment.