summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gr-fft/lib/fft.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/gr-fft/lib/fft.cc b/gr-fft/lib/fft.cc
index c9c9f31990..e787f2f950 100644
--- a/gr-fft/lib/fft.cc
+++ b/gr-fft/lib/fft.cc
@@ -161,7 +161,8 @@ fft_complex::fft_complex(int fft_size, bool forward, int nthreads)
// Hold global mutex during plan construction and destruction.
planner::scoped_lock lock(planner::mutex());
- static_assert(sizeof(fftwf_complex) == sizeof(gr_complex));
+ static_assert(sizeof(fftwf_complex) == sizeof(gr_complex),
+ "The size of fftwf_complex is not equal to gr_complex");
if (fft_size <= 0) {
throw std::out_of_range("fft_impl_fftw: invalid fft_size");
@@ -218,7 +219,8 @@ fft_real_fwd::fft_real_fwd(int fft_size, int nthreads)
// Hold global mutex during plan construction and destruction.
planner::scoped_lock lock(planner::mutex());
- static_assert(sizeof(fftwf_complex) == sizeof(gr_complex));
+ static_assert(sizeof(fftwf_complex) == sizeof(gr_complex),
+ "The size of fftwf_complex is not equal to gr_complex");
if (fft_size <= 0) {
throw std::out_of_range("gr::fft: invalid fft_size");
@@ -275,7 +277,8 @@ fft_real_rev::fft_real_rev(int fft_size, int nthreads)
// Hold global mutex during plan construction and destruction.
planner::scoped_lock lock(planner::mutex());
- static_assert(sizeof(fftwf_complex) == sizeof(gr_complex));
+ static_assert(sizeof(fftwf_complex) == sizeof(gr_complex),
+ "The size of fftwf_complex is not equal to gr_complex");
if (fft_size <= 0) {
throw std::out_of_range("gr::fft::fft_real_rev: invalid fft_size");