diff --git a/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm b/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm index e61568dd6a..69846cf666 100644 --- a/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm +++ b/modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm @@ -531,6 +531,8 @@ public: usingCoreGraphics = index > 0; [view setNeedsDisplay: true]; } + #else + ignoreUnused (index); #endif }