Fix compilation warnings
This commit is contained in:
@@ -12,7 +12,7 @@ public:
|
||||
{
|
||||
}
|
||||
};
|
||||
#define ImplementPhysicsDebug void DrawPhysicsDebug(RenderView& view)
|
||||
#define ImplementPhysicsDebug void DrawPhysicsDebug(RenderView& view) override
|
||||
#else
|
||||
#define ImplementPhysicsDebug
|
||||
#endif
|
||||
|
||||
@@ -258,7 +258,10 @@ bool MacPlatform::Init()
|
||||
|
||||
// Get device id
|
||||
{
|
||||
io_registry_entry_t ioRegistryRoot = IORegistryEntryFromPath(kIOMasterPortDefault, "IOService:/");
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED < 120000
|
||||
#define kIOMainPortDefault kIOMasterPortDefault
|
||||
#endif
|
||||
io_registry_entry_t ioRegistryRoot = IORegistryEntryFromPath(kIOMainPortDefault, "IOService:/");
|
||||
CFStringRef deviceUuid = (CFStringRef)IORegistryEntryCreateCFProperty(ioRegistryRoot, CFSTR(kIOPlatformUUIDKey), kCFAllocatorDefault, 0);
|
||||
IOObjectRelease(ioRegistryRoot);
|
||||
String uuidStr = AppleUtils::ToString(deviceUuid);
|
||||
|
||||
Reference in New Issue
Block a user