mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-02 20:10:32 +00:00
Merge pull request #945 from CouleeApps/fix_macos_warnings
Fix some compiler warnings on macos
This commit is contained in:
commit
35e7a204cd
2 changed files with 7 additions and 1 deletions
|
|
@ -159,7 +159,7 @@ DefineConsoleType(TypeSoundAssetId, String)
|
|||
AssetPtr<SoundAsset> m##name##Asset = NULL;\
|
||||
SFXProfile* m##name##Profile = NULL;\
|
||||
SFXDescription* m##name##Desc = NULL;\
|
||||
SimObjectId m##name##SFXId = NULL;\
|
||||
SimObjectId m##name##SFXId = 0;\
|
||||
public: \
|
||||
const StringTableEntry get##name##File() const { return m##name##Name; }\
|
||||
void set##name##File(const FileName &_in) { m##name##Name = StringTable->insert(_in.c_str());}\
|
||||
|
|
|
|||
|
|
@ -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_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue