diff --git a/plugin/components/graphics_view.cpp b/plugin/components/graphics_view.cpp index c0c02cd..196f793 100644 --- a/plugin/components/graphics_view.cpp +++ b/plugin/components/graphics_view.cpp @@ -292,7 +292,6 @@ void YsfxGraphicsView::paint(juce::Graphics &g) } /// - juce::Point off = m_impl->getDisplayOffset(); Impl::GfxTarget *target = m_impl->m_gfxTarget.get(); // Get final pixel size (we want to correct for any DPI scaling that's happening by making the diff --git a/plugin/components/graphics_view.h b/plugin/components/graphics_view.h index f4286f9..549699a 100644 --- a/plugin/components/graphics_view.h +++ b/plugin/components/graphics_view.h @@ -47,7 +47,6 @@ class YsfxGraphicsView : public juce::Component, public juce::FileDragAndDropTar private: float m_pixelFactor{1.0f}; float m_outputScalingFactor{1.0f}; - bool m_clearPaint{true}; struct Impl; std::unique_ptr m_impl; diff --git a/plugin/processor.cpp b/plugin/processor.cpp index 1d52b86..b52cc24 100644 --- a/plugin/processor.cpp +++ b/plugin/processor.cpp @@ -216,7 +216,7 @@ void YsfxProcessor::prepareToPlay(double sampleRate, int samplesPerBlock) ysfx_t *fx = m_impl->m_fx.get(); m_impl->m_sample_rate = sampleRate; - m_impl->m_block_size = samplesPerBlock; + m_impl->m_block_size = static_cast(samplesPerBlock); ysfx_set_sample_rate(fx, sampleRate); ysfx_set_block_size(fx, (uint32_t)samplesPerBlock); diff --git a/sources/ysfx_preprocess.cpp b/sources/ysfx_preprocess.cpp index 383078f..0629ad7 100644 --- a/sources/ysfx_preprocess.cpp +++ b/sources/ysfx_preprocess.cpp @@ -29,8 +29,6 @@ bool ysfx_preprocess(ysfx::text_reader &reader, ysfx_parse_error *error, std::string& in_str) { std::string line; - uint32_t lineno = 0; - line.reserve(256); WDL_FastString file_str, pp_str;