Skip to content
Search

Android:CompileError

lastmod 2014-08-29created 2014-08-292 edits

Format not a string literal and no format arguments

During an NDK build with android-ndk-r9, the following error may occur.

format not a string literal and no format arguments [-Werror=format-security]

Add the following to the Application.mk file in the jni directory and the compile proceeds without errors.

APP_CFLAGS += -Wno-error=format-security

Alternatively, you can add it to APP_CPPFLAGS.