diff --git a/cocos2dx/CCConfiguration.cpp b/cocos2dx/CCConfiguration.cpp index 50bdd35109..c7fbf3f6fb 100644 --- a/cocos2dx/CCConfiguration.cpp +++ b/cocos2dx/CCConfiguration.cpp @@ -81,6 +81,8 @@ bool CCConfiguration::init(void) #if CC_ENABLE_PROFILERS bEnableProfilers = true; +#else + bEnableProfilers = false; #endif CCLOG("cocos2d: compiled with Profiling Support: %s", diff --git a/cocos2dx/platform/ios/CCEGLView.mm b/cocos2dx/platform/ios/CCEGLView.mm index 4e62451c56..cec7168830 100644 --- a/cocos2dx/platform/ios/CCEGLView.mm +++ b/cocos2dx/platform/ios/CCEGLView.mm @@ -86,6 +86,7 @@ void CCEGLView::swapBuffers() CCSize CCEGLView::getFrameSize() { assert(false); + return CCSizeMake(0, 0); } void CCEGLView::setIMEKeyboardState(bool bOpen) diff --git a/cocos2dx/platform/ios/CCImage.mm b/cocos2dx/platform/ios/CCImage.mm index 9828f30ccc..8ab0bf4c83 100644 --- a/cocos2dx/platform/ios/CCImage.mm +++ b/cocos2dx/platform/ios/CCImage.mm @@ -426,21 +426,25 @@ bool CCImage::_initWithRawData(void *pData, int nDatalen, int nWidth, int nHeigh bool CCImage::_initWithJpgData(void *pData, int nDatalen) { assert(0); + return false; } bool CCImage::_initWithPngData(void *pData, int nDatalen) { assert(0); + return false; } bool CCImage::_saveImageToPNG(const char *pszFilePath, bool bIsToRGB) { assert(0); + return false; } bool CCImage::_saveImageToJPG(const char *pszFilePath) { assert(0); + return false; } bool CCImage::initWithString(