Warnings of "warning: dereferencing type-punned pointer will break strict-aliasing rules"
clone45 opened this issue · 2 comments
clone45 commented
I'd love for these to get addressed! Much appreciated!
src/Common/AudioFile.h: In instantiation of 'bool AudioFile::decodeWaveFile(std::vector&) [with T = float]':
src/Common/AudioFile.h:460:16: required from 'bool AudioFile::load(std::string) [with T = float; std::string = std::__cxx11::basic_string]'
src/Common/sample.hpp:75:29: required from here
src/Common/AudioFile.h:585:59: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
585 | sample = (T)reinterpret_cast<float&> (sampleAsInt);
adamstark commented
This should now be addressed on the develop branch
clone45 commented
Awesome, thank you!