Skip to content

Commit

Permalink
Suppress deprecation warnings for CVDisplayLink calls. (#2569)
Browse files Browse the repository at this point in the history
(cherry picked from commit 848347f)
  • Loading branch information
domchen authored and kevingpqi123 committed Nov 12, 2024
1 parent 6b673ba commit 9e0c08c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/platform/mac/private/NativeDisplayLink.mm
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
#include "NativeDisplayLink.h"

namespace pag {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"

static CVReturn OnAnimationCallback(CVDisplayLinkRef, const CVTimeStamp*, const CVTimeStamp*,
CVOptionFlags, CVOptionFlags*, void* userInfo) {
reinterpret_cast<NativeDisplayLink*>(userInfo)->update();
Expand Down Expand Up @@ -55,4 +58,6 @@ static CVReturn OnAnimationCallback(CVDisplayLinkRef, const CVTimeStamp*, const
void NativeDisplayLink::update() {
callback();
}

#pragma clang diagnostic pop
} // namespace pag

0 comments on commit 9e0c08c

Please sign in to comment.