Fix some compiler warnings on macos

This commit is contained in:
Glenn Smith 2023-01-01 22:55:26 -05:00
parent 10d61e3a37
commit 3bdbe5965e
No known key found for this signature in database
GPG key ID: 5AA4EFC457595B9B
2 changed files with 7 additions and 1 deletions

View file

@ -27,6 +27,8 @@
/// Compiler intrinsics for GCC.
#ifdef TORQUE_OS_MAC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include <libkern/OSAtomic.h>
#endif
@ -85,4 +87,8 @@ inline U32 dAtomicRead( volatile U32 &ref )
#endif
}
#ifdef TORQUE_OS_MAC
#pragma GCC diagnostic pop
#endif
#endif // _TORQUE_PLATFORM_PLATFORMINTRINSICS_GCC_H_