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