mirror of https://github.com/axmolengine/axmol.git
Merge pull request #14073 from mogemimi/fix-compiler-warning
Fix -Wformat-security warning on Xcode
This commit is contained in:
commit
c787e2c1b0
|
@ -615,7 +615,7 @@ Rect GLViewImpl::getScissorRect() const
|
||||||
void GLViewImpl::onGLFWError(int errorID, const char* errorDesc)
|
void GLViewImpl::onGLFWError(int errorID, const char* errorDesc)
|
||||||
{
|
{
|
||||||
_glfwError = StringUtils::format("GLFWError #%d Happen, %s", errorID, 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)
|
void GLViewImpl::onGLFWMouseCallBack(GLFWwindow* window, int button, int action, int modify)
|
||||||
|
|
Loading…
Reference in New Issue