diff --git a/CMakeLists.txt b/CMakeLists.txt index 83ae0e2..2deb97d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -153,6 +153,12 @@ if(MSVC) target_link_libraries(SharedCode INTERFACE Dwmapi.lib) endif() +#TODO: unclear that this does anything? +if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU") + add_compile_options(-Wno-implicit-int-float-conversion) +endif() + + # Link the JUCE plugin targets our SharedCode target target_link_libraries("${PROJECT_NAME}" PRIVATE SharedCode) diff --git a/source/DSP/ProPhatVoice.h b/source/DSP/ProPhatVoice.h index 7eab109..59ae6cb 100644 --- a/source/DSP/ProPhatVoice.h +++ b/source/DSP/ProPhatVoice.h @@ -638,7 +638,7 @@ void ProPhatVoice::processRampUp (juce::dsp::AudioBlock& block, int curBlo #if DEBUG_VOICES DBG ("\tDEBUG RAMP UP " + juce::String (rampUpSamples - rampUpSamplesLeft)); #endif - auto curRampUpLenght = juce::jmin ((int) curBlockSize, rampUpSamplesLeft); + auto curRampUpLenght = static_cast (juce::jmin ((int) curBlockSize, rampUpSamplesLeft)); auto prevRampUpValue = (Constants::rampUpSamples - rampUpSamplesLeft) / (float) Constants::rampUpSamples; auto nextRampUpValue = prevRampUpValue + curRampUpLenght / (float) Constants::rampUpSamples; auto incr = (nextRampUpValue - prevRampUpValue) / (curRampUpLenght); diff --git a/source/UI/ProPhatEditor.cpp b/source/UI/ProPhatEditor.cpp index ccc00d2..c08ad9f 100644 --- a/source/UI/ProPhatEditor.cpp +++ b/source/UI/ProPhatEditor.cpp @@ -146,7 +146,7 @@ ProPhatEditor::ProPhatEditor (ProPhatProcessor& p) addAndMakeVisible (group); //setup components and labels - for (int i = 0; i < components.size (); ++i) + for (size_t i = 0; i < components.size (); ++i) { if (labels[i] != nullptr) {