Closed cschol closed 4 years ago
[FrozenWasteland] Building plugin on platform mac... src/ProbablyNoteMN.cpp:157:52: error: non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list [-Wc++11-narrowing] const float primeNumbers[MAX_PRIME_NUMBERS] = {(1 + std::sqrt(5))/2.0,M_E,M_PI,2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199}; ^~~~~~~~~~~~~~~~~~~~~~ src/ProbablyNoteMN.cpp:157:52: note: insert an explicit cast to silence this issue const float primeNumbers[MAX_PRIME_NUMBERS] = {(1 + std::sqrt(5))/2.0,M_E,M_PI,2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199}; ^~~~~~~~~~~~~~~~~~~~~~ static_cast<float>( ) src/ProbablyNoteMN.cpp:1127:13: warning: unused variable 'currentPitch' [-Wunused-variable] EFPitch currentPitch = reducedEfPitches[currentNote[channel]]; ^ 1 warning and 1 error generated. make: *** [build/src/ProbablyNoteMN.cpp.o] Error 1 make: *** Waiting for unfinished jobs.... FAILED