Skip to content

Commit 9e0c08c

Browse files
domchenkevingpqi123
authored andcommitted
Suppress deprecation warnings for CVDisplayLink calls. (#2569)
(cherry picked from commit 848347f)
1 parent 6b673ba commit 9e0c08c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/platform/mac/private/NativeDisplayLink.mm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
#include "NativeDisplayLink.h"
2020

2121
namespace pag {
22+
#pragma clang diagnostic push
23+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
24+
2225
static CVReturn OnAnimationCallback(CVDisplayLinkRef, const CVTimeStamp*, const CVTimeStamp*,
2326
CVOptionFlags, CVOptionFlags*, void* userInfo) {
2427
reinterpret_cast<NativeDisplayLink*>(userInfo)->update();
@@ -55,4 +58,6 @@ static CVReturn OnAnimationCallback(CVDisplayLinkRef, const CVTimeStamp*, const
5558
void NativeDisplayLink::update() {
5659
callback();
5760
}
61+
62+
#pragma clang diagnostic pop
5863
} // namespace pag

0 commit comments

Comments
 (0)