From 8c04c0195399583c06acb124ed0a18796ac230b1 Mon Sep 17 00:00:00 2001 From: mogemimi Date: Mon, 5 Oct 2015 19:46:00 +0900 Subject: [PATCH] Fix -Wformat-security warning on Xcode --- cocos/platform/desktop/CCGLViewImpl-desktop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/platform/desktop/CCGLViewImpl-desktop.cpp b/cocos/platform/desktop/CCGLViewImpl-desktop.cpp index aa8f3a28b1..5a8a828879 100644 --- a/cocos/platform/desktop/CCGLViewImpl-desktop.cpp +++ b/cocos/platform/desktop/CCGLViewImpl-desktop.cpp @@ -615,7 +615,7 @@ Rect GLViewImpl::getScissorRect() const void GLViewImpl::onGLFWError(int errorID, const char* errorDesc) { _glfwError = StringUtils::format("GLFWError #%d Happen, %s", errorID, errorDesc); - CCLOGERROR(_glfwError.c_str()); + CCLOGERROR("%s", _glfwError.c_str()); } void GLViewImpl::onGLFWMouseCallBack(GLFWwindow* window, int button, int action, int modify)