diff --git a/modules/juce_gui_basics/native/juce_PerScreenDisplayLinks_mac.h b/modules/juce_gui_basics/native/juce_PerScreenDisplayLinks_mac.h index 21982f81d4..fbfc3ecf19 100644 --- a/modules/juce_gui_basics/native/juce_PerScreenDisplayLinks_mac.h +++ b/modules/juce_gui_basics/native/juce_PerScreenDisplayLinks_mac.h @@ -103,6 +103,14 @@ private: Manages the lifetime of a CVDisplayLinkRef for a single display, and automatically starts and stops it. */ + +// From macOS 15+, warnings suggest the CVDisplayLink functions can be replaced with +// NSView.displayLink(target:selector:), NSWindow.displayLink(target:selector:), or +// NSScreen.displayLink(target:selector:) all of which were only introduced in macOS 14+ however, +// it's not clear how these methods can be used to replace all use cases + +JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations") + class ScopedDisplayLink { public: @@ -179,6 +187,8 @@ private: JUCE_DECLARE_NON_MOVEABLE (ScopedDisplayLink) }; +JUCE_END_IGNORE_WARNINGS_GCC_LIKE + //============================================================================== /* Holds a ScopedDisplayLink for each screen. When the screen configuration changes, the