You can put this in your Application.mk to disable treating those
warnings as errors:
APP_CFLAGS += -Wno-error=format-security
There are more solutions for the same problem in this thread: http://www.cocos2d-x.org/boards/6/topics/32437?r=33260\#message-33260
error: format not a string literal and no format arguments [-Werror=format-security],布布扣,bubuko.com
error: format not a string literal and no format arguments [-Werror=format-security]
原文:http://www.cnblogs.com/savagemorgan/p/3627391.html