Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix fft.cpp uninitialized mem warnings found in Ubuntu
Here's the warning: fft.cpp: In function ‘bool Fft_transformBluestein(double*, double*, size_t)’: fft.cpp:163:31: warning: ‘*cos_table’ may be used uninitialized [-Wmaybe-uninitialized] 163 | breal[0] = cos_table[0]; | ~~~~~~~~~~~^ fft.cpp:164:31: warning: ‘*sin_table’ may be used uninitialized [-Wmaybe-uninitialized] 164 | bimag[0] = sin_table[0]; | ~~~~~~~~~~~^ Just needed to return if the malloc size is 0.
- Loading branch information