clap-juce-extensions icon indicating copy to clipboard operation
clap-juce-extensions copied to clipboard

Windows generates warnings at compile time.

Open mthierman opened this issue 2 years ago • 0 comments

Some warnings on Windows when compiling a barebones JUCE plugin with Microsoft CL compiler:

D:\GitHub\juce-plugin\libs\clap-juce-extensions\src\wrapper\clap-juce-wrapper.cpp(397): warning C4100: 'index': unreferenced formal parameter
D:\GitHub\juce-plugin\libs\clap-juce-extensions\src\wrapper\clap-juce-wrapper.cpp(561): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
D:\GitHub\juce-plugin\libs\clap-juce-extensions\clap-libs\clap-helpers\include\clap/helpers/plugin.hh(259): warning C4244: 'return': conversion from 'const double' to 'int', possible loss of data
D:\GitHub\juce-plugin\libs\clap-juce-extensions\clap-libs\clap-helpers\include\clap/helpers/plugin.hh(256): note: while compiling class template member function 'int clap::helpers::Plugin<clap::helpers::MisbehaviourHandler::Terminate,clap::helpers::CheckingLevel::Minimal>::sampleRate(void) noexcept const'
D:\GitHub\juce-plugin\libs\clap-juce-extensions\src\wrapper\clap-juce-wrapper.cpp(261): note: see reference to function template instantiation 'int clap::helpers::Plugin<clap::helpers::MisbehaviourHandler::Terminate,clap::helpers::CheckingLevel::Minimal>::sampleRate(void) noexcept const' being compiled
D:\GitHub\juce-plugin\libs\clap-juce-extensions\src\wrapper\clap-juce-wrapper.cpp(108): note: see reference to class template instantiation 'clap::helpers::Plugin<clap::helpers::MisbehaviourHandler::Terminate,clap::helpers::CheckingLevel::Minimal>' being compiled

mthierman avatar May 07 '22 19:05 mthierman