diff --git a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp index 1127dd2524..78cd39216b 100644 --- a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp @@ -68,6 +68,7 @@ JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996 4100) JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wconversion", "-Wshadow", "-Wdeprecated-register", + "-Wdeprecated-declarations", "-Wunused-parameter", "-Wdeprecated-writable-strings", "-Wnon-virtual-dtor", diff --git a/modules/juce_opengl/opengl/juce_OpenGLContext.cpp b/modules/juce_opengl/opengl/juce_OpenGLContext.cpp index 545505b768..7cb2658c27 100644 --- a/modules/juce_opengl/opengl/juce_OpenGLContext.cpp +++ b/modules/juce_opengl/opengl/juce_OpenGLContext.cpp @@ -214,7 +214,7 @@ public: //============================================================================== void paint (Graphics&) override { - updateViewportSize (false); + updateViewportSize(); } bool invalidateAll() override @@ -352,7 +352,7 @@ public: return true; } - void updateViewportSize (bool canTriggerUpdate) + void updateViewportSize() { JUCE_ASSERT_MESSAGE_THREAD @@ -400,9 +400,7 @@ public: (float) newArea.getHeight() / (float) localBounds.getHeight()); nativeContext->updateWindowPosition (peer->getAreaCoveredBy (component)); - - if (canTriggerUpdate) - invalidateAll(); + invalidateAll(); }); } } @@ -420,7 +418,7 @@ public: if (lastScreenBounds != screenBounds) { - updateViewportSize (true); + updateViewportSize(); lastScreenBounds = screenBounds; } } @@ -523,7 +521,7 @@ public: void handleResize() { - updateViewportSize (true); + updateViewportSize(); #if JUCE_MAC if (hasInitialised) @@ -1052,7 +1050,7 @@ private: if (auto* cachedImage = CachedImage::get (comp)) { cachedImage->start(); // (must wait until this is attached before starting its thread) - cachedImage->updateViewportSize (true); + cachedImage->updateViewportSize(); startTimer (400); }