When compiling, we get a warning of:
FreqEstimator.cpp: In constructor ‘FreqEstimator::FreqEstimator(int)’:
FreqEstimator.cpp:44:66: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct std::complex<float>’; use assignment or value-initialization instead [-Wclass-memaccess]
44 | memset(m_input, 0, sizeof(std::complex < float > ) * m_frames);
| ^
In file included from FreqEstimator.h:19,
from FreqEstimator.cpp:19:
/usr/include/c++/9.2.0/complex:1076:12: note: ‘struct std::complex<float>’ declared here
1076 | struct complex<float>
| ^~~~~~~~~~~~~~
This could lead to unexpected behaviour, and causes compilation issues. The warning can be suppressed with -Wno-class-memaccess.
When compiling, we get a warning of:
This could lead to unexpected behaviour, and causes compilation issues. The warning can be suppressed with
-Wno-class-memaccess.