Skip to content

Commit 497d0fd

Browse files
committed
build: OSSpinLock deprecation warning
1 parent 21167b1 commit 497d0fd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

modules/core/src/system.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -908,6 +908,11 @@ int _interlockedExchangeAdd(int* addr, int delta)
908908

909909
#elif defined __APPLE__
910910

911+
#if defined(__clang__)
912+
#pragma clang diagnostic push
913+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
914+
#endif
915+
911916
#include <libkern/OSAtomic.h>
912917

913918
struct Mutex::Impl
@@ -923,6 +928,10 @@ struct Mutex::Impl
923928
int refcount;
924929
};
925930

931+
#if defined(__clang__)
932+
#pragma clang diagnostic pop
933+
#endif
934+
926935
#elif defined __linux__ && !defined ANDROID && !defined __LINUXTHREADS_OLD__
927936

928937
struct Mutex::Impl

0 commit comments

Comments
 (0)