From 66c7b851342ce2e68b4eeca5b8892c2fbae1e761 Mon Sep 17 00:00:00 2001 From: minggo Date: Mon, 9 Jun 2014 17:06:40 +0800 Subject: [PATCH] fix issue on Xcode 6 --- cocos/platform/ios/CCDevice.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cocos/platform/ios/CCDevice.mm b/cocos/platform/ios/CCDevice.mm index 3a72be780a..5eeaf7ccaa 100644 --- a/cocos/platform/ios/CCDevice.mm +++ b/cocos/platform/ios/CCDevice.mm @@ -128,6 +128,8 @@ static CCAccelerometerDispatcher* s_pAccelerometerDispatcher; case UIInterfaceOrientationPortrait: break; + default: + NSAssert(false, @"unknow orientation"); } cocos2d::EventAcceleration event(*_acceleration);