Android project string literal warning causes build to fail


#1

Hoi! in juce_android_Misc.cpp line 28, 

__android_log_print (ANDROID_LOG_INFO, "JUCE", text.toUTF8());

The Android NDK r9 compiler throws a "warning treated as error" on Linux.

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

and a fix seems to be to tell the compiler to not treat this warning as an error in Application.mk.

APP_CFLAGS += -Wno-error=format-security

Since this file gets overwritten every time an introjucer project is saved, this has added some mental overhead to my project development. Seems like the kind of thing you would want to know about (unless I'm just being stupid). much love.


#2

Please always check the latest version before reporting bugs - I fixed this recently.


#3

My bad. Thanks man.