Skip to content

Commit

Permalink
fft warning gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
alfC committed Mar 4, 2025
1 parent 3af0f48 commit 5dcd555
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion include/boost/multi/adaptors/fft.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,13 @@ namespace boost::multi::fft{
return dft(which, std::forward<In>(in), fft::forward);
}

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-value"
#elif defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-value"
#endif
template<class In>
auto dft_all(In&& in) {
auto const all_true = std::apply([](auto... es) { return std::array{(es, true)...}; }, std::array<bool, std::decay_t<In>::dimensionality>{});
Expand All @@ -171,8 +176,11 @@ namespace boost::multi::fft{
auto const all_true = std::apply([](auto... es) { return std::array{(es, true)...}; }, std::array<bool, std::decay_t<In>::dimensionality>{});
return dft(all_true, std::forward<In>(in), fft::backward);
}
#if defined(__clang__)
#pragma clang diagnostic pop

#elif defined(__GNUC__)
#pragma GCC diagnostic pop
#endif

template<class In, class Direction>
auto idft(std::array<bool, In::dimensionality> which, In&& in) {
Expand Down

0 comments on commit 5dcd555

Please sign in to comment.